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","(",")"]
docstr: Returns stop time of the timer.
  
  Returns:
     The stop time of the timer, floating-point seconds since the epoch.
  Raises:
     TimerError: if the timer was never started or is still running
docstr_tok: ["Returns","stop","time","of","the","timer",".","Returns",":","The","stop","time","of","the","timer",",","floating-point","seconds","since","the","epoch",".","Raises",":","TimerError",":","if","the","timer","was","never","started","or","is","still","running"]
code: def GetStopTime(self):
      """Returns stop time of the timer.
  
      Returns:
         The stop time of the timer, floating-point seconds since the epoch.
      Raises:
         TimerError: if the timer was never started or is still running
      """
      if not self.start:
          raise TimerError("TimerNotStarted")
      elif self.running:
          raise TimerError("TimerStillRunning")
      else:
          return self.start + self.duration
  
imports: import time
label_desc: Use image node_id 12 for calling the Timer obj's underlying member method code with example usage: obj.GetStopTime() and returns: unknown