summaryrefslogtreecommitdiffstats
path: root/src/server/Engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/Engine.cpp')
-rw-r--r--src/server/Engine.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/server/Engine.cpp b/src/server/Engine.cpp
index 0b468ce1..2d458bc4 100644
--- a/src/server/Engine.cpp
+++ b/src/server/Engine.cpp
@@ -321,14 +321,7 @@ Engine::event_time()
uint64_t
Engine::current_time(const RunContext& context) const
{
- struct timespec time;
-#ifdef CLOCK_MONOTONIC_RAW
- clock_gettime(CLOCK_MONOTONIC_RAW, &time);
-#else
- clock_gettime(CLOCK_MONOTONIC, &time);
-#endif
-
- return (uint64_t)time.tv_sec * 1e6 + (uint64_t)time.tv_nsec / 1e3;
+ return _clock.now_microseconds();
}
void