mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-21 17:11:57 -06:00
Use qemu_gettimeofday.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5571 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
e5ceb24447
commit
474ad834d2
1 changed files with 1 additions and 1 deletions
|
@ -82,6 +82,6 @@ int qemu_set_fd_handler2(int fd,
|
||||||
int64_t qemu_get_clock(QEMUClock *clock)
|
int64_t qemu_get_clock(QEMUClock *clock)
|
||||||
{
|
{
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday(&tv, NULL);
|
qemu_gettimeofday(&tv);
|
||||||
return (tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000)) / 1000000;
|
return (tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000)) / 1000000;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue