class_docstr: Wrapper around an MPS event.
  
  MPS events are synchronization markers that can be used to monitor the
  device's progress, to accurately measure timing, and to synchronize MPS streams.
  
  Args:
      enable_timing (bool, optional): indicates if the event should measure time
          (default: ``False``)
docstr: Returns the time elapsed in milliseconds after the event was
  recorded and before the end_event was recorded.
docstr_tok: ["Returns","the","time","elapsed","in","milliseconds","after","the","event","was","recorded","and","before","the","end_event","was","recorded","."]
code: def elapsed_time(self, end_event):
      r"""Returns the time elapsed in milliseconds after the event was
      recorded and before the end_event was recorded.
      """
      return torch._C._mps_elapsedTimeOfEvents(
          self.__eventId, end_event.__eventId
      )
  
file_path: pytorch/torch/mps/event.py
imports: import torch
label_desc: Use image node_id 7 for calling the Event obj's underlying member method code with example usage: obj.elapsed_time(end_event) and returns: torch