summaryrefslogtreecommitdiff
path: root/qemu-timer.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2010-01-26 10:31:46 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-02-09 16:56:13 -0600
commit41c872b6bf010a3033f3032cd41db6cab14173e6 (patch)
tree0de93043112e3128c1117affccc2b451abdae73f /qemu-timer.h
parente970ec0b5e26d9f605f57e80818866baa6e769db (diff)
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-timer.h b/qemu-timer.h
index e7eaa0436c..c17b4e6058 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);