def __exit__(self, *args):
    'Python context manager support for use in with statement (on exit).'
    self.duration = int(((time.time() - self.start) * 1000))
Python context manager support for use in with statement (on exit).
def __exit__(self, *args):
    
    self.duration = int(((time.time() - self.start) * 1000))