mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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>
This commit is contained in:
parent
e970ec0b5e
commit
41c872b6bf
2 changed files with 20 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue