A timer context manager measuring the clock wall time of the code block it contains. Version 0.3.3 is the latest, with no recent updates (last release in 2018). The library provides a simple context manager and decorator for timing code blocks, defaulting to wall-clock time. It supports alternative timers via Python's time module.
pip install contexttimerVerified import paths — ran on the pinned version, not inferred.
Basic usage: measure wall time of a code block using a context manager.
Use a newer library like 'timer' or 'timeit' if you need cross-platform consistency.
Consider using 'timer' (pip install timer) or 'timeit' from stdlib.
Use 'from contexttimer import Timer'
Use 'from contexttimer import timer' and then apply @timer
No dependency data recorded yet.