Created
December 21, 2018 10:52
-
-
Save foolip/50ac9450ab205f739719169d7578bf40 to your computer and use it in GitHub Desktop.
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 | |
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