15static void my_sleep(
double sleeptime) {
16 DWORD ms = (DWORD) (sleeptime * 1000.0);
26 ts.tv_sec = (time_t)sleeptime;
27 ts.tv_nsec = (long)((sleeptime - (
double)ts.tv_sec) * 1E9);
static void my_sleep(double sleeptime)
Utility function to have a sleep function with better resolution and which only stops one thread.