2012-06-14 13:06:06 +00:00
|
|
|
|
|
|
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
|
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-07-21 15:19:48 +02:00
|
|
|
void cSleep::MilliSleep( unsigned int a_MilliSeconds)
|
2012-06-14 13:06:06 +00:00
|
|
|
{
|
|
|
|
|
#ifdef _WIN32
|
2014-07-17 22:15:34 +02:00
|
|
|
Sleep(a_MilliSeconds); // Don't tick too much
|
2012-06-14 13:06:06 +00:00
|
|
|
#else
|
2014-07-17 23:15:53 +02:00
|
|
|
usleep(a_MilliSeconds*1000);
|
2012-06-14 13:06:06 +00:00
|
|
|
#endif
|
|
|
|
|
}
|