diff options
Diffstat (limited to 'qemu-timer.h')
-rw-r--r-- | qemu-timer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qemu-timer.h b/qemu-timer.h index 00b166de4a..e44c33420f 100644 --- a/qemu-timer.h +++ b/qemu-timer.h @@ -26,7 +26,10 @@ void qemu_mod_timer(QEMUTimer *ts, int64_t expire_time); int qemu_timer_pending(QEMUTimer *ts); int qemu_timer_expired(QEMUTimer *timer_head, int64_t current_time); -int64_t get_ticks_per_sec(void); +static inline int64_t get_ticks_per_sec(void) +{ + return 1000000000LL; +} void qemu_get_timer(QEMUFile *f, QEMUTimer *ts); void qemu_put_timer(QEMUFile *f, QEMUTimer *ts); |