MCPcopy Create free account
hub / github.com/KlingAIResearch/LivePortrait / tic

Method tic

src/utils/timer.py:18–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

16 self.diff = 0.
17
18 def tic(self):
19 # using time.time instead of time.clock because time time.clock
20 # does not normalize for multithreading
21 self.start_time = time.time()
22
23 def toc(self, average=True):
24 self.diff = time.time() - self.start_time

Callers 3

warmupMethod · 0.80
warmupMethod · 0.80
warmupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected