Total time since the timer is started. Returns (float): Time in seconds.
(self)
| 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. |