blob: 2369425cfa1547a80cbab0228e0690928418ca6d [file] [log] [blame] [raw]
#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;
}