From cbd0709d1cf8f7a33e57b3d1bb84d7fd527e2ff2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 10 Aug 2013 11:05:58 +0200 Subject: glib_compat.h: use monotonic_clock_us() in g_source_get_time() --- src/glib_compat.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/glib_compat.h b/src/glib_compat.h index 20cf2f614..5277d317e 100644 --- a/src/glib_compat.h +++ b/src/glib_compat.h @@ -30,12 +30,12 @@ #if !GLIB_CHECK_VERSION(2,28,0) +#include "system/clock.h" + static inline gint64 g_source_get_time(GSource *source) { - GTimeVal tv; - g_source_get_current_time(source, &tv); - return tv.tv_sec * 1000000 + tv.tv_usec; + return monotonic_clock_us(); } #endif -- cgit v1.2.3