aboutsummaryrefslogtreecommitdiffstats
path: root/src/event
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-15 09:38:12 +0200
committerMax Kellermann <max@duempel.org>2013-10-15 09:38:12 +0200
commit0c13703da3641951bf061cac7c5cef034eda16f9 (patch)
tree53af5b78031142e475a683d7bbc6c580b1d0e297 /src/event
parentb97b7a7493c0535cd21d05189c1a5b7cdd0accb2 (diff)
downloadmpd-0c13703da3641951bf061cac7c5cef034eda16f9.tar.gz
mpd-0c13703da3641951bf061cac7c5cef034eda16f9.tar.xz
mpd-0c13703da3641951bf061cac7c5cef034eda16f9.zip
system/clock: convert to C++
Diffstat (limited to '')
-rw-r--r--src/event/Loop.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/event/Loop.cxx b/src/event/Loop.cxx
index faf967f21..e8d9e4b96 100644
--- a/src/event/Loop.cxx
+++ b/src/event/Loop.cxx
@@ -19,10 +19,10 @@
#include "config.h"
#include "Loop.hxx"
-#include "system/clock.h"
#ifdef USE_EPOLL
+#include "system/Clock.hxx"
#include "TimeoutMonitor.hxx"
#include "SocketMonitor.hxx"
#include "IdleMonitor.hxx"
@@ -31,7 +31,7 @@
EventLoop::EventLoop(Default)
:SocketMonitor(*this),
- now_ms(::monotonic_clock_ms()),
+ now_ms(::MonotonicClockMS()),
quit(false),
n_events(0),
thread(ThreadId::Null())
@@ -114,7 +114,7 @@ EventLoop::Run()
assert(!quit);
do {
- now_ms = ::monotonic_clock_ms();
+ now_ms = ::MonotonicClockMS();
/* invoke timers */
@@ -162,7 +162,7 @@ EventLoop::Run()
const int n = epoll.Wait(events, MAX_EVENTS, timeout_ms);
n_events = std::max(n, 0);
- now_ms = ::monotonic_clock_ms();
+ now_ms = ::MonotonicClockMS();
assert(!quit);