Linux and MinGW can just use nanosleep().
As for Windows, use CreateWaitableTimerEx, with a CREATE_WAITABLE_TIMER_HIGH_RESOLUTION flag.
As for Windows, use CreateWaitableTimerEx, with a CREATE_WAITABLE_TIMER_HIGH_RESOLUTION flag.
https://docs.microsoft.com/en-us/windows/win32/api/timeapi/n...