mmcv/utils/timer.py
def since_last_check(self):
        """Time since the last checking.

        Either :func:`since_start` or :func:`since_last_check` is a checking
        operation.

        Returns (float): Time in seconds.
        """
        if not self._is_running:
            raise TimerError('timer is not running')
        dur = time() - self._t_last
        self._t_last = time()
        return dur
def since_last_check(self):
        if not self._is_running:
            raise TimerError('timer is not running')
        dur = time() - self._t_last
        self._t_last = time()
        return dur
def since_last_check ( self ) : if not self . _is_running : raise TimerError ( 'timer is not running' ) dur = time ( ) - self . _t_last self . _t_last = time ( ) return dur
Time since the last checking.

        Either :func:`since_start` or :func:`since_last_check` is a checking
        operation.

        Returns (float): Time in seconds.
Time since the last checking .