diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2011-03-13 10:30:52 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-03-15 20:49:56 +0000 |
commit | ad620c29c2da573e3a5f13f5b1eb2694fee64cfb (patch) | |
tree | 76e294551d7fb7078c676989722b5758d1d8dc81 /ui | |
parent | 31d3c9b8c15d7b42f508d5fc2adc4abb7c732b70 (diff) | |
download | qemu-ad620c29c2da573e3a5f13f5b1eb2694fee64cfb.zip qemu-ad620c29c2da573e3a5f13f5b1eb2694fee64cfb.tar.gz qemu-ad620c29c2da573e3a5f13f5b1eb2694fee64cfb.tar.bz2 |
win32: implement missing timersub
Implement and wrap timersub() for Win32.
Acked-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/vnc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2302,7 +2302,7 @@ static int vnc_update_stats(VncDisplay *vd, struct timeval * tv) } } - timersub(tv, &VNC_REFRESH_STATS, &res); + qemu_timersub(tv, &VNC_REFRESH_STATS, &res); if (timercmp(&vd->guest.last_freq_check, &res, >)) { return has_dirty; @@ -2320,7 +2320,7 @@ static int vnc_update_stats(VncDisplay *vd, struct timeval * tv) } max = rect->times[(rect->idx + count - 1) % count]; - timersub(tv, &max, &res); + qemu_timersub(tv, &max, &res); if (timercmp(&res, &VNC_REFRESH_LOSSY, >)) { rect->freq = 0; @@ -2331,7 +2331,7 @@ static int vnc_update_stats(VncDisplay *vd, struct timeval * tv) min = rect->times[rect->idx]; max = rect->times[(rect->idx + count - 1) % count]; - timersub(&max, &min, &res); + qemu_timersub(&max, &min, &res); rect->freq = res.tv_sec + res.tv_usec / 1000000.; rect->freq /= count; |