summaryrefslogtreecommitdiff
path: root/gio/gfilemonitor.c
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2011-08-31 15:49:35 -0400
committerRyan Lortie <desrt@desrt.ca>2011-09-09 12:47:39 -0400
commite48573c402326a9428b032b0d33dd06644316990 (patch)
tree14bcb0dd0de93478b836970d0ab6472dffc795ac /gio/gfilemonitor.c
parent3534ff418c85481d245631abb06e89b8898790f4 (diff)
downloadglib-e48573c402326a9428b032b0d33dd06644316990.tar.gz
Deprecated (undocumented) g_thread_gettime
g_thread_gettime() is an undocumented public function pointer that points to a function that returns the monotonic time in nanoseconds. g_get_monotonic_time() does the same in microseconds, so it can be used instead. GLib had one internal user in GFileMonitor that only cared about millisecond accuracy; it has been ported to g_get_monotonic_time().
Diffstat (limited to 'gio/gfilemonitor.c')
-rw-r--r--gio/gfilemonitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gfilemonitor.c b/gio/gfilemonitor.c
index e4d6589ab..93fd23ea6 100644
--- a/gio/gfilemonitor.c
+++ b/gio/gfilemonitor.c
@@ -439,7 +439,7 @@ emit_in_idle (GFileMonitor *monitor,
static guint32
get_time_msecs (void)
{
- return g_thread_gettime() / (1000 * 1000);
+ return g_get_monotonic_time () / G_TIME_SPAN_MILLISECOND;
}
static guint32