diff options
Diffstat (limited to 'qemu-timer.h')
-rw-r--r-- | qemu-timer.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/qemu-timer.h b/qemu-timer.h index d2e15f4ca..62da88758 100644 --- a/qemu-timer.h +++ b/qemu-timer.h @@ -236,4 +236,15 @@ static inline int can_do_io(CPUState *env) } #endif +#ifdef CONFIG_PROFILER +static inline int64_t profile_getclock(void) +{ + return cpu_get_real_ticks(); +} + +extern int64_t qemu_time, qemu_time_start; +extern int64_t tlb_flush_time; +extern int64_t dev_time; +#endif + #endif |