MCPcopy
hub / github.com/microsoft/Cream / start

Method start

CDARTS/CDARTS_detection/mmcv/utils/timer.py:56–61  ·  view source on GitHub ↗

Start the timer.

(self)

Source from the content-addressed store, hash-verified

54 self._is_running = False
55
56 def start(self):
57 """Start the timer."""
58 if not self._is_running:
59 self._t_start = time()
60 self._is_running = True
61 self._t_last = time()
62
63 def since_start(self):
64 """Total time since the timer is started.

Callers 9

__init__Method · 0.95
__enter__Method · 0.95
__init__Method · 0.45
parallel_testFunction · 0.45
connectMethod · 0.45

Calls

no outgoing calls

Tested by 3

parallel_testFunction · 0.36