Use g_get_real_time() and g_get_monotonic_time() where appropriate