Created
December 26, 2013 21:36
-
-
Save tynn/8139003 to your computer and use it in GitHub Desktop.
Just stop with Ctrl-C.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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