Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 393 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 393 Bytes

libsleepy

cross platform sleep function that tries to not overshoot sleep duration

requests a slightly shorter sleep duration from the system than was passed to the sleep function and then spins in a loop the rest of the way

windows

uses NtSetTimerResolution to lower timer resolution and WaitForSingleObject to sleep

*nix

looks for nanosleep or usleep and uses whichever it finds