Utilities

lys_instr.Utilities.preciseSleep(sleepTime)[source]

Sleep for the specified interval (in seconds) with improved temporal precision.

Avoid overshooting the requested sleep time by busy-waiting for the last ~0.5 ms.

Parameters:

sleepTime (float) – Total time to sleep, in seconds. Non-positive values return immediately.