apenwarr-redo/t/101-atime/tick.py

6 lines
121 B
Python
Raw Permalink Normal View History

2011-03-10 14:31:52 -08:00
import time
t2 = int(time.time()) + 1.0
while 1:
t = time.time()
if t >= t2: break
time.sleep(t2 - t + 0.01)