Revision 7bd427d8 qemu-char.c

b/qemu-char.c
267 267
                int64_t ti;
268 268
                int secs;
269 269

  
270
                ti = qemu_get_clock(rt_clock);
270
                ti = qemu_get_clock_ms(rt_clock);
271 271
                if (d->timestamps_start == -1)
272 272
                    d->timestamps_start = ti;
273 273
                ti -= d->timestamps_start;
......
911 911
     * timeout to the normal (much longer) poll interval before the
912 912
     * timer triggers.
913 913
     */
914
    qemu_mod_timer(s->timer, qemu_get_clock(rt_clock) + 10);
914
    qemu_mod_timer(s->timer, qemu_get_clock_ms(rt_clock) + 10);
915 915
}
916 916

  
917 917
static void pty_chr_state(CharDriverState *chr, int connected)
......
925 925
        /* (re-)connect poll interval for idle guests: once per second.
926 926
         * We check more frequently in case the guests sends data to
927 927
         * the virtual device linked to our pty. */
928
        qemu_mod_timer(s->timer, qemu_get_clock(rt_clock) + 1000);
928
        qemu_mod_timer(s->timer, qemu_get_clock_ms(rt_clock) + 1000);
929 929
    } else {
930 930
        if (!s->connected)
931 931
            qemu_chr_generic_open(chr);
......
1001 1001
    chr->chr_update_read_handler = pty_chr_update_read_handler;
1002 1002
    chr->chr_close = pty_chr_close;
1003 1003

  
1004
    s->timer = qemu_new_timer(rt_clock, pty_chr_timer, chr);
1004
    s->timer = qemu_new_timer_ms(rt_clock, pty_chr_timer, chr);
1005 1005

  
1006 1006
    return chr;
1007 1007
}

Also available in: Unified diff