def seconds(self):
        """
        Returns:
            float: the total number of seconds since the start/reset of the timer, excluding the
                time in between when the timer is paused.
        """
        if self._paused:
            self.resume()
            self.pause()
        return timer() - self._start - self._total_paused

        Returns:
            float: the total number of seconds since the start/reset of the timer, excluding the
                time in between when the timer is paused.
        
tensorpack/utils/timer.py