summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-03-02 03:06:19 +0100
committerMorph <39850852+Morph1984@users.noreply.github.com>2023-03-05 08:36:31 +0100
commitbff14532825e7517882ca913738347059f73cf7f (patch)
treef21f509d4c7458a79e2fc399c1de3036a7efd51d /src/common
parentmain: (Windows) Set the current timer resolution to the maximum (diff)
downloadyuzu-bff14532825e7517882ca913738347059f73cf7f.tar
yuzu-bff14532825e7517882ca913738347059f73cf7f.tar.gz
yuzu-bff14532825e7517882ca913738347059f73cf7f.tar.bz2
yuzu-bff14532825e7517882ca913738347059f73cf7f.tar.lz
yuzu-bff14532825e7517882ca913738347059f73cf7f.tar.xz
yuzu-bff14532825e7517882ca913738347059f73cf7f.tar.zst
yuzu-bff14532825e7517882ca913738347059f73cf7f.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/wall_clock.cpp5
-rw-r--r--src/common/wall_clock.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/common/wall_clock.cpp b/src/common/wall_clock.cpp
index 6d972d136..817e71d52 100644
--- a/src/common/wall_clock.cpp
+++ b/src/common/wall_clock.cpp
@@ -81,4 +81,9 @@ std::unique_ptr<WallClock> CreateBestMatchingClock(u64 emulated_cpu_frequency,
#endif
+std::unique_ptr<WallClock> CreateStandardWallClock(u64 emulated_cpu_frequency,
+ u64 emulated_clock_frequency) {
+ return std::make_unique<StandardWallClock>(emulated_cpu_frequency, emulated_clock_frequency);
+}
+
} // namespace Common
diff --git a/src/common/wall_clock.h b/src/common/wall_clock.h
index 828a523a8..157ec5eae 100644
--- a/src/common/wall_clock.h
+++ b/src/common/wall_clock.h
@@ -55,4 +55,7 @@ private:
[[nodiscard]] std::unique_ptr<WallClock> CreateBestMatchingClock(u64 emulated_cpu_frequency,
u64 emulated_clock_frequency);
+[[nodiscard]] std::unique_ptr<WallClock> CreateStandardWallClock(u64 emulated_cpu_frequency,
+ u64 emulated_clock_frequency);
+
} // namespace Common