MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / pause

Method pause

tensorpack/utils/timer.py:128–133  ·  view source on GitHub ↗

Pause the timer.

(self)

Source from the content-addressed store, hash-verified

126 self._total_paused = 0
127
128 def pause(self):
129 """
130 Pause the timer.
131 """
132 assert self._paused is False
133 self._paused = timer()
134
135 def is_paused(self):
136 return self._paused is not False

Callers 5

secondsMethod · 0.95
benchmark_serializerFunction · 0.95
__init__Method · 0.45
_after_epochMethod · 0.45
_update_lastMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected