summaryrefslogtreecommitdiffstats
path: root/src/core/core_timing.h
diff options
context:
space:
mode:
authorHuw Pascoe <huw.pascoe@gmail.com>2017-09-30 18:25:49 +0200
committerHuw Pascoe <huw.pascoe@gmail.com>2017-09-30 18:38:14 +0200
commit529f4a01318a450f999ffa7e01c5c26f801d22e0 (patch)
tree8728152f1726aeb775c2bba2ecc60bc67354e083 /src/core/core_timing.h
parentServices/UDS: Handle the rest of the connection sequence. (#2963) (diff)
downloadyuzu-529f4a01318a450f999ffa7e01c5c26f801d22e0.tar
yuzu-529f4a01318a450f999ffa7e01c5c26f801d22e0.tar.gz
yuzu-529f4a01318a450f999ffa7e01c5c26f801d22e0.tar.bz2
yuzu-529f4a01318a450f999ffa7e01c5c26f801d22e0.tar.lz
yuzu-529f4a01318a450f999ffa7e01c5c26f801d22e0.tar.xz
yuzu-529f4a01318a450f999ffa7e01c5c26f801d22e0.tar.zst
yuzu-529f4a01318a450f999ffa7e01c5c26f801d22e0.zip
Diffstat (limited to 'src/core/core_timing.h')
-rw-r--r--src/core/core_timing.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/core_timing.h b/src/core/core_timing.h
index d2f85cd4d..897350801 100644
--- a/src/core/core_timing.h
+++ b/src/core/core_timing.h
@@ -67,6 +67,12 @@ void Shutdown();
typedef void (*MHzChangeCallback)();
typedef std::function<void(u64 userdata, int cycles_late)> TimedCallback;
+/**
+* Advance the CPU core by the specified number of ticks (e.g. to simulate CPU execution time)
+* @param ticks Number of ticks to advance the CPU core
+*/
+void AddTicks(u64 ticks);
+
u64 GetTicks();
u64 GetIdleTicks();
u64 GetGlobalTimeUs();