SA-MP/raknet/RakSleep.cpp

19 lines
324 B
C++
Raw Normal View History

2023-11-01 21:16:31 +08:00
#if defined(_COMPATIBILITY_1)
#include "Compatibility1Includes.h"
#elif defined(_WIN32)
#include <windows.h> // Sleep
#elif defined(_COMPATIBILITY_2)
#include "Compatibility2Includes.h"
#else
#include <unistd.h> // usleep
#endif
void RakSleep(unsigned int ms)
{
#ifdef _WIN32
Sleep(ms);
#else
usleep(ms * 1000);
#endif
}