replace gettimeofday() with g_get_monotonic_time()