In [4]:
import time, threading
on=True
times=[]
In [6]:
def foo():
print(time.ctime())
times.append(time.ctime())
threading.Timer(10, foo).start()
foo()
In [7]:
print(times)
In [26]:
print(times[0]<times[1])
In [3]:
In [4]:
In [ ]:
In [ ]: