summaryrefslogtreecommitdiff
path: root/qemu-timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-timer.h')
-rw-r--r--qemu-timer.h11
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