class_docstr: An internal timer.
class_docstr_tok: ["An","internal","timer","."]
docstr: Start the timer.
docstr_tok: ["Start","the","timer","."]
code: def start(self, sync_func: Callable = None):
      """Start the timer."""
      assert (
          not self.started
      ), f"timer {self.name} has already been started."
      if sync_func:
          sync_func()
  
      self.start_time = time.perf_counter()
      self.start_times.append(self.start_time)
      self.started = True
  
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 2 for calling the _Timer obj's underlying member method code with example usage: obj.start(sync_func) without return types