Skip to content

Instantly share code, notes, and snippets.

@jasonjohnson
Created September 4, 2009 18:35
Show Gist options
  • Save jasonjohnson/181028 to your computer and use it in GitHub Desktop.
Save jasonjohnson/181028 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import time
tick = 0
while 1:
step = time.time()
diff = step - tick
if diff > 0.025:
print diff
tick = step
time.sleep(0.03)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment