parameters: (self)
docstring: Drop all events and times
docstring_summary: Drop all events and times
docstring_tokens: Drop all events and times
function: def clear_events(self):
          """Drop all events and times"""
          self.lastTime = 0
          self.times = []
          self.insts = {}
          self.lines = {}
          self.numEvents = 0
  
          for unit, events in self.unitEvents.items():
              self.unitEvents[unit] = []
function_tokens: def clear_events ( self ) : self . lastTime = 0 self . times = [ ] self . insts = { } self . lines = { } self . numEvents = 0 for unit , events in self . unitEvents . items ( ) : self . unitEvents [ unit ] = [ ]