There was an error while loading. Please reload this page.
1 parent edc03b9 commit 06b6bc3Copy full SHA for 06b6bc3
CScopedTimer.h
@@ -12,12 +12,6 @@
12
#include "headers/HAIInterface.h"
13
#include "headers/HEngine.h"
14
15
-#if (BOOST_VERSION >= 105000) // boost 1.50 renamed TIME_UTC to TIME_UTC_
16
-#define boost_TIME_UTC_override boost::TIME_UTC_
17
-#else
18
-#define boost_TIME_UTC_override boost::TIME_UTC
19
-#endif
20
-
21
#define PROFILE(x) CScopedTimer t(std::string(#x), ai->cb);
22
23
// Time interval in logic frames (1 min)
@@ -42,7 +36,7 @@ class CScopedTimer {
42
36
43
37
static unsigned int GetEngineRuntimeMSec() {
44
38
boost::xtime t;
45
-boost::xtime_get(&t, boost_TIME_UTC_override);
39
+boost::xtime_get(&t, boost::TIME_UTC_);
46
40
const unsigned int milliSeconds = t.sec * 1000 + (t.nsec / 1000000);
47
41
return milliSeconds;
48
}
0 commit comments