Replace qemu_gettimeofday() with g_get_real_time()