]> Git Repo - qemu.git/commit
slirp: Use monotonic clock if available (v2)
authorEd Swierk <[email protected]>
Thu, 23 Jul 2009 21:13:34 +0000 (14:13 -0700)
committerAnthony Liguori <[email protected]>
Mon, 27 Jul 2009 19:09:15 +0000 (14:09 -0500)
commitaaf10d9d2e14ceed03b75f24494fb3e8c4d15d57
treeb976dccc720af95f34fec1b37f683c7efc4298e8
parent97df1ee542eb5aeec42ce1244fa9da86f9209ee3
slirp: Use monotonic clock if available (v2)

Calling gettimeofday() to compute a time interval can cause problems if
the system clock jumps forwards or backwards; replace updtime() with
qemu_get_clock(rt_clock), which calls clock_gettime(CLOCK_MONOTONIC) if
it is available.

Also remove some useless macros.

Signed-off-by: Ed Swierk <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
slirp/slirp.c
slirp/slirp.h
slirp/slirp_config.h
This page took 0.025496 seconds and 4 git commands to generate.