class_docstr: An internal timer.
class_docstr_tok: ["An","internal","timer","."]
code: def __init__(self, name: str):
      self.name = name
      self.started = False
      self.start_time = None
  
      # start-stop timestamp pairs
      self.start_times = []
      self.stop_times = []
      self.costs = []
  
file_path: deepspeedexamples/inference/huggingface/zero_inference/timer.py
imports: from collections import namedtuple
  import time
  from typing import Callable, Any
label_desc: Use image node_id 1 to create a new _Timer object  with example: obj = _Timer(name)