MCPcopy Create free account
hub / github.com/dabeaz/python-cookbook / stopwatch.py

File stopwatch.py

src/13/making_a_stopwatch/stopwatch.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import time
2
3class Timer:
4 def __init__(self, func=time.perf_counter):

Callers

nothing calls this directly

Calls 4

TimerClass · 0.85
endMethod · 0.80
countdownFunction · 0.70
startMethod · 0.45

Tested by

no test coverage detected