2011-10-03 14:41:19 -04:00
|
|
|
|
2012-01-29 14:28:19 -05:00
|
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
#include <unistd.h>
|
2011-10-03 14:41:19 -04:00
|
|
|
#endif
|
|
|
|
|
2012-01-29 14:28:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-03 14:41:19 -04:00
|
|
|
void cSleep::MilliSleep( unsigned int a_MilliSeconds )
|
|
|
|
{
|
|
|
|
#ifdef _WIN32
|
|
|
|
Sleep(a_MilliSeconds); // Don't tick too much
|
|
|
|
#else
|
|
|
|
usleep(a_MilliSeconds*1000);
|
|
|
|
#endif
|
|
|
|
}
|