glib_compat.h: use monotonic_clock_us() in g_source_get_time()

This commit is contained in:
Max Kellermann 2013-08-10 11:05:58 +02:00
parent 371d635da8
commit cbd0709d1c
1 changed files with 3 additions and 3 deletions

View File

@ -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