aboutsummaryrefslogtreecommitdiff
path: root/oss.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-03-31 19:00:16 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-03-31 19:00:16 +0000
commit8a7ddc38a60648257dc0645ab4a05b33d6040063 (patch)
tree07f940c19bd51e3d6a7724f7141ef53d535a007f /oss.c
parentb0a21b5334fb31042d555bfb66de864291c53140 (diff)
new timer API - new API to save/restore the virtual machine state
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@690 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'oss.c')
-rw-r--r--oss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/oss.c b/oss.c
index 4210799eb7..1922985c1c 100644
--- a/oss.c
+++ b/oss.c
@@ -459,11 +459,11 @@ int AUD_get_free (void)
uint64_t ua_elapsed;
uint64_t al_elapsed;
- ticks = cpu_get_ticks ();
+ ticks = qemu_get_clock(rt_clock);
delta = ticks - old_ticks;
old_ticks = ticks;
- ua_elapsed = (delta * bytes_per_second) / ticks_per_sec;
+ ua_elapsed = (delta * bytes_per_second) / 1000;
al_elapsed = ua_elapsed & ~3ULL;
ldebug ("tid elapsed %llu bytes\n", ua_elapsed);