From 0c13703da3641951bf061cac7c5cef034eda16f9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 15 Oct 2013 09:38:12 +0200 Subject: system/clock: convert to C++ --- src/event/Loop.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/event') 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); -- cgit v1.2.3