diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2010-01-26 10:31:46 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-02-09 16:56:13 -0600 |
commit | 41c872b6bf010a3033f3032cd41db6cab14173e6 (patch) | |
tree | 0de93043112e3128c1117affccc2b451abdae73f /qemu-timer.h | |
parent | e970ec0b5e26d9f605f57e80818866baa6e769db (diff) | |
download | qemu-41c872b6bf010a3033f3032cd41db6cab14173e6.zip qemu-41c872b6bf010a3033f3032cd41db6cab14173e6.tar.gz qemu-41c872b6bf010a3033f3032cd41db6cab14173e6.tar.bz2 |
add qemu_get_clock_ns
Some places use get_clock directly because they want to access the
rt_clock with nanosecond precision. Add a function to do exactly that
instead of using internal interfaces.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-timer.h')
-rw-r--r-- | qemu-timer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-timer.h b/qemu-timer.h index e7eaa04..c17b4e6 100644 --- a/qemu-timer.h +++ b/qemu-timer.h @@ -25,6 +25,7 @@ extern QEMUClock *vm_clock; extern QEMUClock *host_clock; int64_t qemu_get_clock(QEMUClock *clock); +int64_t qemu_get_clock_ns(QEMUClock *clock); QEMUTimer *qemu_new_timer(QEMUClock *clock, QEMUTimerCB *cb, void *opaque); void qemu_free_timer(QEMUTimer *ts); |