summaryrefslogtreecommitdiffstats
path: root/qemu-timer.h
diff options
context:
space:
mode:
authorPaolo Bonzini2010-01-26 09:31:46 +0100
committerAnthony Liguori2010-02-09 23:56:13 +0100
commit41c872b6bf010a3033f3032cd41db6cab14173e6 (patch)
tree0de93043112e3128c1117affccc2b451abdae73f /qemu-timer.h
parentRemove unused code (diff)
downloadqemu-41c872b6bf010a3033f3032cd41db6cab14173e6.tar.gz
qemu-41c872b6bf010a3033f3032cd41db6cab14173e6.tar.xz
qemu-41c872b6bf010a3033f3032cd41db6cab14173e6.zip
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);