diff options
author | Alex Bligh <alex@alex.org.uk> | 2013-08-21 16:02:41 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-08-22 15:58:05 +0200 |
commit | 02a03a9f12ec2fe68c9fed84fa8607a5326e2b65 (patch) | |
tree | 015e3d3c8f3e61aa2ad393b8e6a414bf406be0d5 /util/host-utils.c | |
parent | 58ac56b9ad53b006396523639bb7d7043edc56bf (diff) |
aio / timers: add qemu-timer.c utility functions
Add utility functions to qemu-timer.c for nanosecond timing.
Add qemu_clock_deadline_ns to calculate deadlines to
nanosecond accuracy.
Add utility function qemu_soonest_timeout to calculate soonest deadline.
Add qemu_timeout_ns_to_ms to convert a timeout in nanoseconds back to
milliseconds for when ppoll is not used.
Signed-off-by: Alex Bligh <alex@alex.org.uk>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'util/host-utils.c')
0 files changed, 0 insertions, 0 deletions