summaryrefslogtreecommitdiffstats
path: root/src/server/Engine.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-10-01 20:28:20 -0400
committerDavid Robillard <d@drobilla.net>2016-10-01 20:28:20 -0400
commitdec535cd49098563881d54ae8196a2f254e6e5a7 (patch)
treef05967b8c44db6da25f956a1602620e0328480f5 /src/server/Engine.cpp
parentf7bbd02b6bfdb3d09146488cfeebf26722abaa0c (diff)
downloadingen-parallel.tar.gz
ingen-parallel.tar.bz2
ingen-parallel.zip
Fix OSX buildparallel
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