class_docstr: Timer.
class_docstr_tok: ["Timer","."]
docstr: Stop the timer.
docstr_tok: ["Stop","the","timer","."]
code: def stop(self):
      """Stop the timer."""
      assert self.started_, "timer is not started"
      torch.cuda.synchronize()
      self.elapsed_ += time.time() - self.start_time
      self.started_ = False
  
file_path: apex/apex/transformer/pipeline_parallel/_timers.py
imports: import time
  import torch
label_desc: Use image node_id 3 for calling the _Timer obj's underlying member method code with example usage: obj.stop() without return types