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 total elapsed time, in seconds.
  
  Returns:
     The total time (in seconds) accumulated so far, regardless of counter
     state (i.e. if stopped, total time spent in all running windows; if
     running, total time spent in all previous running windows plus time
     elapsed from the last call to Start() until GetDuration() was called).
docstr_tok: ["Returns","the","total","elapsed","time",",","in","seconds",".","Returns",":","The","total","time","(","in","seconds",")","accumulated","so","far",",","regardless","of","counter","state","(","i.e",".","if","stopped",",","total","time","spent","in","all","running","windows",";","if","running",",","total","time","spent","in","all","previous","running","windows","plus","time","elapsed","from","the","last","call","to","Start","(",")","until","GetDuration","(",")","was","called",")","."]
code: def GetDuration(self):
      """Returns the total elapsed time, in seconds.
  
      Returns:
         The total time (in seconds) accumulated so far, regardless of counter
         state (i.e. if stopped, total time spent in all running windows; if
         running, total time spent in all previous running windows plus time
         elapsed from the last call to Start() until GetDuration() was called).
      """
      if self.running:
          return self.duration + (time.time() - self.start)
      else:
          return self.duration
  
imports: import time
label_desc: Use image node_id 4 for calling the MultiIntervalTimer obj's underlying member method code with example usage: obj.GetDuration() and returns: unknown, self