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.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/server/Engine.cpp b/src/server/Engine.cpp
index 0b468ce1..5c9472e8 100644
--- a/src/server/Engine.cpp
+++ b/src/server/Engine.cpp
@@ -131,6 +131,7 @@ Engine::Engine(Ingen::World* world)
_atom_interface = new AtomReader(
world->uri_map(), world->uris(), world->log(), *_interface.get());
+
}
Engine::~Engine()
@@ -321,14 +322,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