class_docstr: A timer class which computes the time elapsed since the start/reset of the timer.
class_docstr_tok: ["A","timer","class","which","computes","the","time","elapsed","since","the","start\/reset","of","the","timer","."]
code: def __init__(self):
      self.reset()
  
imports: import atexit
  from collections import defaultdict
  from contextlib import contextmanager
  from time import perf_counter
  from .None import logger
  from .stats import StatCounter
label_desc: Use image node_id 1 to create a new Timer object  with example: obj = Timer()