#include <windows.h> | |
#include <nt.h> | |
int usleep(unsigned long int useconds) { | |
LARGE_INTEGER Interval; | |
Interval.QuadPart = -(unsigned long long int)useconds * 10; | |
return NtDelayExecution(0, &Interval); | |
} | |
unsigned int sleep(unsigned int seconds) { | |
usleep(seconds * 1000000); | |
return 0; | |
} |