MCPcopy Create free account
hub / github.com/modelscope/modelscope / since_start

Method since_start

modelscope/preprocessors/cv/timer.py:65–72  ·  view source on GitHub ↗

Total time since the timer is started. Returns (float): Time in seconds.

(self)

Source from the content-addressed store, hash-verified

63 self._t_last = time()
64
65 def since_start(self):
66 """Total time since the timer is started.
67 Returns (float): Time in seconds.
68 """
69 if not self._is_running:
70 raise TimerError('timer is not running')
71 self._t_last = time()
72 return self._t_last - self._t_start
73
74 def since_last_check(self):
75 """Time since the last checking.

Callers 1

updateMethod · 0.80

Calls 1

TimerErrorClass · 0.85

Tested by

no test coverage detected