Skip to content

Instantly share code, notes, and snippets.

@sorashi
Created January 19, 2016 17:49
Show Gist options
  • Select an option

  • Save sorashi/a9fb7d3944122ef2cbc8 to your computer and use it in GitHub Desktop.

Select an option

Save sorashi/a9fb7d3944122ef2cbc8 to your computer and use it in GitHub Desktop.
Tokyo Ghoul reference
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."
@sorashi
Copy link
Author

sorashi commented Jan 19, 2016

Sample output

1000
993
986
979
...
13
6
Hello, Tokyo! It took me 12.004ms to count down from 1000, decreasing by 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment