blob: 4b53521cb2b30e02b24c9b8048d62d7a5f8d8db2 [file] [log] [blame] [raw]
#include <windows.h>
unsigned long int NTAPI NtDelayExecution(char, PLARGE_INTEGER);
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;
}