class_docstr: Measure time elapsed since some event.
  
  Example usage:
  
  from deepvariant.vendor import timer
  a_timer = timer.Timer()
  a_timer.Start()
  
  # Do stuff here ...
  
  a_timer.Stop()
  if a_timer.GetDuration() > 100:
    print 'This took too long'
  
  Another way to use this class is the with statement:
  
  with timer.Timer() as t:
    # Do time consuming stuff ...
  print 'Time consuming stuff took %f seconds.' % t.GetDuration()
class_docstr_tok: ["Measure","time","elapsed","since","some","event",".","Example","usage",":","from","deepvariant.vendor","import","timer","a_timer","=","timer.Timer","(",")","a_timer.Start","(",")","#","Do","stuff","here","...","a_timer.Stop","(",")","if","a_timer.GetDuration","(",")",">","100",":","print","'This","took","too","long'","Another","way","to","use","this","class","is","the","with","statement",":","with","timer.Timer","(",")","as","t",":","#","Do","time","consuming","stuff","...","print","'Time","consuming","stuff","took","%","f","seconds",".","'","%","t.GetDuration","(",")"]
code: def IsRunning(self):
      return self.running
  
imports: import time
label_desc: Use image node_id 8 for calling the Timer obj's underlying member method code with example usage: obj.IsRunning() and returns: self