Created
January 19, 2016 17:49
-
-
Save sorashi/a9fb7d3944122ef2cbc8 to your computer and use it in GitHub Desktop.
Tokyo Ghoul reference
This file contains hidden or 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
| import time | |
| now=time.time() | |
| c=1000 | |
| while c>0: | |
| print c | |
| c-=7 | |
| print "Hello, Tokyo! It took me "+str(round((time.time()-now)*1000,3))+"ms to count down from 1000, decreasing by 7." |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample output
1000
993
986
979
...
13
6
Hello, Tokyo! It took me 12.004ms to count down from 1000, decreasing by 7.