]> git.proxmox.com Git - qemu.git/blobdiff - qemu-timer.h
Fix --enable-profiler compilation.
[qemu.git] / qemu-timer.h
index d2e15f4caa7bd61e8bac8d342f4ecd3e75fe04f8..62da887584a7b56eb80e0cd7072553cdee5cf5a8 100644 (file)
@@ -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