commit | aaf10d9d2e14ceed03b75f24494fb3e8c4d15d57 | [log] [tgz] |
---|---|---|
author | Ed Swierk <eswierk@aristanetworks.com> | Thu Jul 23 14:13:34 2009 -0700 |
committer | Anthony Liguori <aliguori@us.ibm.com> | Mon Jul 27 14:09:15 2009 -0500 |
tree | b976dccc720af95f34fec1b37f683c7efc4298e8 | |
parent | 97df1ee542eb5aeec42ce1244fa9da86f9209ee3 [diff] |
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 <eswierk@aristanetworks.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>