class_docstr: A class implementing a simple timer, with a reset option 
class_docstr_tok: ["A","class","implementing","a","simple","timer",",","with","a","reset","option"]
code: def toc(self, average=True):
      self._diff = time.time() - self._start_time
      self._total_time += self._diff
      self._calls += 1
      self._average_time = self._total_time / self._calls
      if average:
          return self._average_time
      else:
          return self._diff
  
imports: import sys
  import time
  import six
label_desc: Use image node_id 5 for calling the Timer obj's underlying member method code with example usage: obj.toc(average) and returns: self, self