Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (11 sloc) 217 Bytes
#define _GNU_SOURCE
#include <unistd.h>
#include <time.h>
int usleep(unsigned useconds)
{
struct timespec tv = {
.tv_sec = useconds/1000000,
.tv_nsec = (useconds%1000000)*1000
};
return nanosleep(&tv, &tv);
}
You can’t perform that action at this time.