class_docstr: Context manager that times the duration of the code body.
  The `duration` attribute will contain the execution time in seconds.
class_docstr_tok: ["Context","manager","that","times","the","duration","of","the","code","body",".","The","`","duration","`","attribute","will","contain","the","execution","time","in","seconds","."]
code: def __init__(self):
      self.duration = None
  
imports: from __future__ import unicode_literals
  import time
label_desc: Use image node_id 1 to create a new TimeIt object from inherited base classes: object with example: obj = TimeIt()