Skip to content

Instantly share code, notes, and snippets.

@mperlet
Created June 12, 2016 11:15
Show Gist options
  • Save mperlet/05f230425332850897ed90b1e0662443 to your computer and use it in GitHub Desktop.
Save mperlet/05f230425332850897ed90b1e0662443 to your computer and use it in GitHub Desktop.
simple python stopwatch
import time
class T(object):
def __init__(self):
self.now = time.time()
def end(self):
print(time.time() - self.now)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment