diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/timer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/qemu/timer.h b/include/qemu/timer.h index 1678238..5e76e3f 100644 --- a/include/qemu/timer.h +++ b/include/qemu/timer.h @@ -795,6 +795,14 @@ static inline int64_t get_max_clock_jump(void) return 60 * NANOSECONDS_PER_SECOND; } +/** + * timer_deadline_ms: + * + * Returns the remaining miliseconds for @timer to expire, or zero + * if the timer is no longer pending. + */ +int64_t timer_deadline_ms(QEMUTimer *timer); + /* * Low level clock functions */ |