MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / reset

Method reset

deepspeed/utils/timer.py:83–88  ·  view source on GitHub ↗

Reset timer.

(self)

Source from the content-addressed store, hash-verified

81 return sum(self.elapsed_records)
82
83 def reset(self):
84 """Reset timer."""
85 self.started_ = False
86 self.start_event = None
87 self.elapsed_records = None
88 self.event_timers.clear()
89
90 def elapsed(self, reset=True):
91 """Calculate the elapsed time."""

Callers 1

elapsedMethod · 0.95

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected