stopwatch package
Submodules
stopwatch.stopwatch module
Stopwatch class for timing portions of python code
- class stopwatch.stopwatch.Tick(time: float, action: str, name: str)[source]
Bases:
object
- time: float
- action: str
- name: str
- class stopwatch.stopwatch.Stopwatch[source]
Bases:
object
Stopwatch Instance
- A typical lifecycle of the stopwatch:
[creation] –> [start] –> [tick, pause, resume] –> [stop]
- property time_paused
Get pause-time
- property time_active
- property time_total
Module contents
Stopwatch class for timing your python code with support for pause, resume and multiple named-ticks.