diff options
author | Max Kellermann <max@duempel.org> | 2013-08-10 11:05:58 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-08-10 11:52:31 +0200 |
commit | cbd0709d1cf8f7a33e57b3d1bb84d7fd527e2ff2 (patch) | |
tree | 96e172982fa672dcb7762c34a6c8591d043f035f | |
parent | 371d635da82067888d0f0aedc340f5a25c38a635 (diff) | |
download | mpd-cbd0709d1cf8f7a33e57b3d1bb84d7fd527e2ff2.tar.gz mpd-cbd0709d1cf8f7a33e57b3d1bb84d7fd527e2ff2.tar.xz mpd-cbd0709d1cf8f7a33e57b3d1bb84d7fd527e2ff2.zip |
glib_compat.h: use monotonic_clock_us() in g_source_get_time()
-rw-r--r-- | src/glib_compat.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 |