1 int PortableUsleep_justHereToAvoidRanlibWarning(void) { return 0; }
6 int usleep(unsigned int us
)
8 static LARGE_INTEGER freq
;
9 static int initted
= 0;
10 LARGE_INTEGER s
, e
, d
;
14 QueryPerformanceFrequency(&freq
);
18 QueryPerformanceCounter(&s
);
19 d
.QuadPart
= freq
.QuadPart
* ((double)us
/ 1000000.0);
23 QueryPerformanceCounter(&e
);
24 } while (e
.QuadPart
- s
.QuadPart
< d
.QuadPart
);