Skip to content

Instantly share code, notes, and snippets.

@foolip
Created December 21, 2018 10:52
Show Gist options
  • Save foolip/50ac9450ab205f739719169d7578bf40 to your computer and use it in GitHub Desktop.
Save foolip/50ac9450ab205f739719169d7578bf40 to your computer and use it in GitHub Desktop.
import time
def sleep(secs):
t0 = time.time()
time.sleep(secs)
t1 = time.time()
return t1 - t0
for _ in range(10):
delta = sleep(0.25)
print(1000 * delta)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment