mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-31 01:15:48 -04:00
Added MetricsServer project
This commit is contained in:
@@ -19,7 +19,9 @@
|
||||
#ifdef LINUX
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
#ifdef WINDOWS
|
||||
#include <windows.h>
|
||||
#endif
|
||||
//----------------------------------------------------------------
|
||||
std::string MetricsServer::m_commandLine;
|
||||
int MetricsServer::m_worldCountChannel = 0;
|
||||
@@ -188,7 +190,11 @@ void MetricsServer::run()
|
||||
if (pDump)
|
||||
m_soeMonitor->dump();
|
||||
Clock::limitFrameRate();
|
||||
usleep(2000);
|
||||
#ifdef WIN32
|
||||
Sleep(2);
|
||||
#else
|
||||
usleep(2000);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user