MCPcopy
hub / github.com/hpcaitech/ColossalAI / current_time

Method current_time

colossalai/utils/timer.py:23–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

21
22 @property
23 def current_time(self) -> float:
24 get_accelerator().synchronize()
25 return time.time()
26
27 def start(self):
28 """Firstly synchronize cuda, reset the clock and then start the timer."""

Callers

nothing calls this directly

Calls 2

get_acceleratorFunction · 0.90
synchronizeMethod · 0.45

Tested by

no test coverage detected