From 673cad207cccf829038ab1a4399ca302bb0cf078 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sun, 12 Jan 2014 19:19:52 +0100 Subject: [PATCH] fixed clock source. embarassing... --- src/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timer.c b/src/timer.c index 65df9ed..bfc182c 100644 --- a/src/timer.c +++ b/src/timer.c @@ -47,7 +47,7 @@ static uint64_t Timer_now() #ifdef __MACH__ clock_serv_t clock; mach_timespec_t mts; - host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &clock); + host_get_clock_service(mach_host_self(), SYSTEM_CLOCK, &clock); clock_get_time(clock, &mts); mach_port_deallocate(mach_task_self(), clock); ts.tv_sec = mts.tv_sec; -- 2.30.2