summaryrefslogtreecommitdiff
path: root/src/common/wall_clock.h
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-02-25 12:28:55 -0400
committerGravatar Fernando Sahmkow2020-06-27 11:35:10 -0400
commit18dcb0934217628711c5b1d22fd6d7635e683e3f (patch)
tree426f78eb11aa79e0d1c7470b966fbae8ea8e3e6d /src/common/wall_clock.h
parentAudioCore: Use nanoseconds instead of cycles for buffer time. (diff)
downloadyuzu-18dcb0934217628711c5b1d22fd6d7635e683e3f.tar.gz
yuzu-18dcb0934217628711c5b1d22fd6d7635e683e3f.tar.xz
yuzu-18dcb0934217628711c5b1d22fd6d7635e683e3f.zip
HostTiming: Pause the hardware clock on pause.
Diffstat (limited to '')
-rw-r--r--src/common/wall_clock.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/wall_clock.h b/src/common/wall_clock.h
index ed284cf50..367d72134 100644
--- a/src/common/wall_clock.h
+++ b/src/common/wall_clock.h
@@ -28,6 +28,8 @@ public:
28 /// Returns current wall time in emulated cpu cycles 28 /// Returns current wall time in emulated cpu cycles
29 virtual u64 GetCPUCycles() = 0; 29 virtual u64 GetCPUCycles() = 0;
30 30
31 virtual void Pause(bool is_paused) = 0;
32
31 /// Tells if the wall clock, uses the host CPU's hardware clock 33 /// Tells if the wall clock, uses the host CPU's hardware clock
32 bool IsNative() const { 34 bool IsNative() const {
33 return is_native; 35 return is_native;