blob: 0579ab358216a5f9fcb1d0248938a3882099331f [file] [log] [blame]
#define _GNU_SOURCE
#include <time.h>
#include <unistd.h>
int usleep(unsigned useconds) {
struct timespec tv = {.tv_sec = useconds / 1000000, .tv_nsec = (useconds % 1000000) * 1000};
return nanosleep(&tv, &tv);
}