MCPcopy
hub / github.com/tinygrad/tinygrad / WallTimeEvent

Class WallTimeEvent

extra/bench_log.py:30–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28clear_events()
29
30class WallTimeEvent:
31 def __init__(self, event:BenchEvent):
32 self.event = event
33 def __enter__(self):
34 self.start = time.monotonic()
35 return self
36 def __exit__(self, *_):
37 self.time = time.monotonic() - self.start
38 _events[self.event]["wall"].append(self.time)
39 return False
40
41class KernelTimeEvent:
42 def __init__(self, event:BenchEvent):

Callers 15

buildMethod · 0.90
build_ggufMethod · 0.90
generateMethod · 0.90
train_cifarFunction · 0.90
hlb_cifar10.pyFile · 0.90
build_transformerFunction · 0.90
llama3.pyFile · 0.90

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…