Created
December 18, 2016 15:12
-
-
Save adimania/1918d5c56ab12f077ae8584c1408a42c to your computer and use it in GitHub Desktop.
running something every 10 seconds.
This file contains 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 datetime | |
import threading | |
import time | |
def d(): | |
t=threading.Timer(10.0,d) | |
t.start() | |
time.sleep(2) | |
print datetime.datetime.now() | |
d() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment