diff options
| author | 2017-09-30 14:46:06 -0500 | |
|---|---|---|
| committer | 2017-09-30 14:46:06 -0500 | |
| commit | 5ba48c161053fa8cd05c443cb94d4f66fede4d15 (patch) | |
| tree | 8728152f1726aeb775c2bba2ecc60bc67354e083 /src/core/core_timing.h | |
| parent | Services/UDS: Handle the rest of the connection sequence. (#2963) (diff) | |
| parent | Moved down_count to CoreTiming (diff) | |
| download | yuzu-5ba48c161053fa8cd05c443cb94d4f66fede4d15.tar.gz yuzu-5ba48c161053fa8cd05c443cb94d4f66fede4d15.tar.xz yuzu-5ba48c161053fa8cd05c443cb94d4f66fede4d15.zip | |
Merge pull request #2973 from huwpascoe/down_count
Moved down_count to CoreTiming
Diffstat (limited to 'src/core/core_timing.h')
| -rw-r--r-- | src/core/core_timing.h | 6 |
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(); | |||
| 67 | typedef void (*MHzChangeCallback)(); | 67 | typedef void (*MHzChangeCallback)(); |
| 68 | typedef std::function<void(u64 userdata, int cycles_late)> TimedCallback; | 68 | typedef std::function<void(u64 userdata, int cycles_late)> TimedCallback; |
| 69 | 69 | ||
| 70 | /** | ||
| 71 | * Advance the CPU core by the specified number of ticks (e.g. to simulate CPU execution time) | ||
| 72 | * @param ticks Number of ticks to advance the CPU core | ||
| 73 | */ | ||
| 74 | void AddTicks(u64 ticks); | ||
| 75 | |||
| 70 | u64 GetTicks(); | 76 | u64 GetTicks(); |
| 71 | u64 GetIdleTicks(); | 77 | u64 GetIdleTicks(); |
| 72 | u64 GetGlobalTimeUs(); | 78 | u64 GetGlobalTimeUs(); |