Skip to content

Instantly share code, notes, and snippets.

@tynn
Created December 26, 2013 21:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tynn/8139003 to your computer and use it in GitHub Desktop.
Save tynn/8139003 to your computer and use it in GitHub Desktop.
Just stop with Ctrl-C.
#!/usr/bin/env python
# 2013 CC0 http://creativecommons.org/publicdomain/zero/1.0/
if __name__ == '__main__' :
from time import sleep, time
start = time()
print ("Terminal Stop Watch")
try :
while True : sleep(.0001)
except : print ("\r{:f}".format(time() - start))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment