class_docstr: Timer class.
  
  `Original code <https://github.com/miguelgfierro/pybase/blob/2298172a13fb4a243754acbc6029a4a2dcf72c20/log_base/timer.py>`_.
  
  Examples:
      >>> import time
      >>> t = Timer()
      >>> t.start()
      >>> time.sleep(1)
      >>> t.stop()
      >>> t.interval < 1
      True
      >>> with Timer() as t:
      ...   time.sleep(1)
      >>> t.interval < 1
      True
      >>> "Time elapsed {}".format(t) #doctest: +ELLIPSIS
      'Time elapsed 1...'
docstr: Get time interval in seconds.
  
  Returns:
      float: Seconds.
docstr_tok: ["Get","time","interval","in","seconds",".","Returns",":","float",":","Seconds","."]
code: def interval(self):
      """Get time interval in seconds.
  
      Returns:
          float: Seconds.
      """
      if self.running:
          raise ValueError(
              "Timer has not been stopped, please use stop()."
          )
      else:
          return self._interval
  
file_path: recommenders/recommenders/utils/timer.py
imports: from timeit import default_timer
label_desc: Use image node_id 7 for calling the Timer obj's underlying member method code with example usage: obj.interval() and returns: self