import time

def f(t0):
    print('Time elapsed since t0:', time.time() - t0)
s = sched.scheduler(time.time, time.sleep)
for i in range(10):
    pass
Implement sub millisecond processing in python without busywait