Utilities

lys_instr.Utilities.preciseSleep(sleepTime)[source]

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

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

Parameters:

sleepTime (float) – The total time to sleep, in seconds.