MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / elapsed

Method elapsed

deepspeed/utils/timer.py:109–111  ·  view source on GitHub ↗

Elapsed time in ms of the latest start/stop interval.

(self, reset=True)

Source from the content-addressed store, hash-verified

107 return elapsed_
108
109 def elapsed(self, reset=True):
110 """Elapsed time in ms of the latest start/stop interval."""
111 return self._elapsed(reset, total=False)
112
113 def elapsed_total(self, reset=True):
114 """Total elapsed time in ms of all intervals since the last reset."""

Callers

nothing calls this directly

Calls 1

_elapsedMethod · 0.95

Tested by

no test coverage detected