blob: ce1c814453f87deab85b9f5bcaeea029bd9be64e (
plain) (
tree)
|
|
#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);
}
|