class_docstr: Timer class.
  Original code: https://github.com/miguelgfierro/codebase
  
  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: Stop the timer. Calculate the interval in seconds.
docstr_tok: ["Stop","the","timer",".","Calculate","the","interval","in","seconds","."]
code: def stop(self):
      """Stop the timer. Calculate the interval in seconds."""
      self.end = self._timer()
      try:
          self._interval = self.end - self.init
          self.running = False
      except AttributeError:
          raise ValueError(
              "Timer has not been initialized: use start() or the contextual form with Timer() "
              "as t:"
          )
  
file_path: interpret-text/python/interpret_text/experimental/common/timer.py
imports: from timeit import default_timer
label_desc: Use image node_id 6 for calling the Timer obj's underlying member method code with example usage: obj.stop() without return types