Commit 474ad834d2c2637a7e5df527f8a89e2792b572ef
1 parent
e5ceb244
Use qemu_gettimeofday.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5571 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
qemu-tool.c
| @@ -82,6 +82,6 @@ int qemu_set_fd_handler2(int fd, | @@ -82,6 +82,6 @@ int qemu_set_fd_handler2(int fd, | ||
| 82 | int64_t qemu_get_clock(QEMUClock *clock) | 82 | int64_t qemu_get_clock(QEMUClock *clock) |
| 83 | { | 83 | { |
| 84 | struct timeval tv; | 84 | struct timeval tv; |
| 85 | - gettimeofday(&tv, NULL); | 85 | + qemu_gettimeofday(&tv); |
| 86 | return (tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000)) / 1000000; | 86 | return (tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000)) / 1000000; |
| 87 | } | 87 | } |