Revision 7bd427d8 ui/spice-core.c

b/ui/spice-core.c
55 55
    SpiceTimer *timer;
56 56

  
57 57
    timer = qemu_mallocz(sizeof(*timer));
58
    timer->timer = qemu_new_timer(rt_clock, func, opaque);
58
    timer->timer = qemu_new_timer_ms(rt_clock, func, opaque);
59 59
    QTAILQ_INSERT_TAIL(&timers, timer, next);
60 60
    return timer;
61 61
}
62 62

  
63 63
static void timer_start(SpiceTimer *timer, uint32_t ms)
64 64
{
65
    qemu_mod_timer(timer->timer, qemu_get_clock(rt_clock) + ms);
65
    qemu_mod_timer(timer->timer, qemu_get_clock_ms(rt_clock) + ms);
66 66
}
67 67

  
68 68
static void timer_cancel(SpiceTimer *timer)

Also available in: Unified diff