Skip to content

Instantly share code, notes, and snippets.

@whardier
Created June 22, 2020 02:47
Show Gist options
  • Save whardier/3c42500db20127754114e7c9a59da8e0 to your computer and use it in GitHub Desktop.
Save whardier/3c42500db20127754114e7c9a59da8e0 to your computer and use it in GitHub Desktop.
import time
counter = 0
def something():
global counter
counter += 1
print(time.time(), counter)
while True:
something()
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment