MCPcopy Index your code
hub / github.com/FoundationVision/ByteTrack / toc

Method toc

yolox/tracking_utils/timer.py:20–29  ·  view source on GitHub ↗
(self, average=True)

Source from the content-addressed store, hash-verified

18 self.start_time = time.time()
19
20 def toc(self, average=True):
21 self.diff = time.time() - self.start_time
22 self.total_time += self.diff
23 self.calls += 1
24 self.average_time = self.total_time / self.calls
25 if average:
26 self.duration = self.average_time
27 else:
28 self.duration = self.diff
29 return self.duration
30
31 def clear(self):
32 self.total_time = 0.

Callers 4

image_demoFunction · 0.95
imageflow_demoFunction · 0.95
imageflow_demoFunction · 0.95
eval_seqFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected