Skip to content

Instantly share code, notes, and snippets.

@lwzm
Created December 2, 2013 02:02
Show Gist options
  • Save lwzm/7743809 to your computer and use it in GitHub Desktop.
Save lwzm/7743809 to your computer and use it in GitHub Desktop.
my simple version
#!/usr/bin/env python3
def f():
for _ in range(1000**2):
pass
import time
t0 = time.time()
f()
print(time.time() - t0)
print(time.clock())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment