X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/90e389f6ec12e60a62c362296ffcf314feb5b03d..53c1823aaef2eb8d547a8eed8cfe12fe7204ca79:/stglibs/ia.lib/ia.cpp diff --git a/stglibs/ia.lib/ia.cpp b/stglibs/ia.lib/ia.cpp index f08c4614..abecef09 100644 --- a/stglibs/ia.lib/ia.cpp +++ b/stglibs/ia.lib/ia.cpp @@ -41,10 +41,7 @@ #include #else #include - #include - #include #include - #include #include #include #endif @@ -72,7 +69,7 @@ static int a = 0; if (a == 0) { - usleep(50000); + Sleep(50); a = 1; } @@ -85,7 +82,9 @@ return NULL; //--------------------------------------------------------------------------- void Sleep(int ms) { -usleep(ms * 1000); +long long res = ms * 1000000; +struct timespec ts = {res / 1000000000, res % 1000000000}; +nanosleep(&ts, NULL); } //--------------------------------------------------------------------------- long GetTickCount()