User Guide
API Reference
A simple timer for measuring elapsed time.
Example usage:
stopwatch = Stopwatch() some_func() print(f"some_func took: {stopwatch.elapsed()} seconds.") stopwatch.reset()
None
Return the elapsed time since the stopwatch was reset.
float
Reset the stopwatch, i.e. start the timer.