| 1234567891011121314151617 |
- #include "win.h"
- #ifdef _MSC_VER
- #include <windows.h>
- void usleep(__int64 usec){
- HANDLE timer;
- LARGE_INTEGER ft;
- ft.QuadPart = -(10*usec);
- timer = CreateWaitableTimer(NULL, TRUE, NULL);
- SetWaitableTimer(timer, &ft, 0, NULL, NULL, 0);
- WaitForSingleObject(timer, INFINITE);
- CloseHandle(timer);
- }
- #endif
|