MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / __init__

Method __init__

codegeex/megatron/global_vars.py:195–199  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

193 """Timer."""
194
195 def __init__(self, name):
196 self.name_ = name
197 self.elapsed_ = 0.0
198 self.started_ = False
199 self.start_time = time.time()
200
201 def start(self):
202 """Start the timer."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected