class_docstr: A timer that records cumulative time intervals.
  
  Example usage:
  
  from deepvariant.vendor import timer
  a_timer = timer.MultiIntervalTimer()
  
  # Do stuff the first time
  a_timer.Start()
  # ... stuff ...
  a_timer.Stop()
  
  # Do stuff the second time (repeat as many times as you like)
  a_timer.Start()
  # ... stuff ...
  a_timer.Stop()
  
  if a_timer.GetDuration() > 1000:
    print 'Total time spent doing stuff is too much!'
  
  Another way to use this class is the with statement:
  
  t = timer.MultiIntervalTimer()
  with t:
    # Do stuff the first time
  
  with t:
    # Do stuff the second time (repeat as many times as you like)
  
  print 'Total time spent doing stuff was %f seconds.' % t.GetDuration()
class_docstr_tok: ["A","timer","that","records","cumulative","time","intervals",".","Example","usage",":","from","deepvariant.vendor","import","timer","a_timer","=","timer.MultiIntervalTimer","(",")","#","Do","stuff","the","first","time","a_timer.Start","(",")","#","...","stuff","...","a_timer.Stop","(",")","#","Do","stuff","the","second","time","(","repeat","as","many","times","as","you","like",")","a_timer.Start","(",")","#","...","stuff","...","a_timer.Stop","(",")","if","a_timer.GetDuration","(",")",">","1000",":","print","'Total","time","spent","doing","stuff","is","too","much","!","'","Another","way","to","use","this","class","is","the","with","statement",":","t","=","timer.MultiIntervalTimer","(",")","with","t",":","#","Do","stuff","the","first","time","with","t",":","#","Do","stuff","the","second","time","(","repeat","as","many","times","as","you","like",")","print","'Total","time","spent","doing","stuff","was","%","f","seconds",".","'","%","t.GetDuration","(",")"]
docstr: Returns the last stop time of the timer.
  
  Returns:
     The last stop time of the timer, same format as time.time()
  Raises:
     TimerError: if the timer was never started or is still running
docstr_tok: ["Returns","the","last","stop","time","of","the","timer",".","Returns",":","The","last","stop","time","of","the","timer",",","same","format","as","time.time","(",")","Raises",":","TimerError",":","if","the","timer","was","never","started","or","is","still","running"]
code: def GetStopTime(self):
      """Returns the last stop time of the timer.
  
      Returns:
         The last stop time of the timer, same format as time.time()
      Raises:
         TimerError: if the timer was never started or is still running
      """
      if not self.start:
          return super(MultiIntervalTimer, self).GetStopTime()
      elif self.running:
          return super(MultiIntervalTimer, self).GetStopTime()
      else:
          return self.stop
  
imports: import time
label_desc: Use image node_id 5 for calling the MultiIntervalTimer obj's underlying member method code with example usage: obj.GetStopTime() and returns: super, super, self