How to delay until a next increment of time occurs ?

R.Wieser address at not.available
Wed Nov 13 13:00:25 EST 2019


David,

> timeInterval = 0.0003
> time.sleep(timeInterval - (time.perf_counter() % timeInterval))

Possibly: any reason for the performance counter modulo the interval ?

Regards,
Rudy Wieser




More information about the Python-list mailing list