Use qemu_gettimeofday.
[qemu] / qemu-tool.c
index 87cc294..74d4b4f 100644 (file)
@@ -82,6 +82,6 @@ int qemu_set_fd_handler2(int fd,
 int64_t qemu_get_clock(QEMUClock *clock)
 {
     struct timeval tv;
-    gettimeofday(&tv, NULL);
+    qemu_gettimeofday(&tv);
     return (tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000)) / 1000000;
 }