11#elif _POSIX_C_SOURCE >= 199309L
25#elif _POSIX_C_SOURCE >= 199309L
27 ts.tv_sec = milliseconds / 1000;
28 ts.tv_nsec = (milliseconds % 1000) * 1000000;
31 if (milliseconds >= 1000)
32 sleep(milliseconds / 1000);
33 usleep((milliseconds % 1000) * 1000);
Declaration of the sleep function, for sleeping for a number of milliseconds.
void sleep(int milliseconds)
Sleep for the specified number of milliseconds. Does not return until after the sleep period.