summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/time/time_sharedmemory.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-04-23 06:09:49 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2023-06-08 03:44:42 +0200
commit9dcc7bde8bb05dbc62fa196bcbe1484762e66917 (patch)
tree0fe9233f208999ec2ac64b38afb96a3ae21661b3 /src/core/hle/service/time/time_sharedmemory.cpp
parentcore_timing: Use CNTPCT as the guest CPU tick (diff)
downloadyuzu-9dcc7bde8bb05dbc62fa196bcbe1484762e66917.tar
yuzu-9dcc7bde8bb05dbc62fa196bcbe1484762e66917.tar.gz
yuzu-9dcc7bde8bb05dbc62fa196bcbe1484762e66917.tar.bz2
yuzu-9dcc7bde8bb05dbc62fa196bcbe1484762e66917.tar.lz
yuzu-9dcc7bde8bb05dbc62fa196bcbe1484762e66917.tar.xz
yuzu-9dcc7bde8bb05dbc62fa196bcbe1484762e66917.tar.zst
yuzu-9dcc7bde8bb05dbc62fa196bcbe1484762e66917.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/time/time_sharedmemory.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/time/time_sharedmemory.cpp b/src/core/hle/service/time/time_sharedmemory.cpp
index ce1c85bcc..a00676669 100644
--- a/src/core/hle/service/time/time_sharedmemory.cpp
+++ b/src/core/hle/service/time/time_sharedmemory.cpp
@@ -21,8 +21,9 @@ SharedMemory::~SharedMemory() = default;
void SharedMemory::SetupStandardSteadyClock(const Common::UUID& clock_source_id,
Clock::TimeSpanType current_time_point) {
- const Clock::TimeSpanType ticks_time_span{Clock::TimeSpanType::FromTicks(
- system.CoreTiming().GetClockTicks(), Core::Hardware::CNTFREQ)};
+ const Clock::TimeSpanType ticks_time_span{
+ Clock::TimeSpanType::FromTicks<Core::Hardware::CNTFREQ>(
+ system.CoreTiming().GetClockTicks())};
const Clock::SteadyClockContext context{
static_cast<u64>(current_time_point.nanoseconds - ticks_time_span.nanoseconds),
clock_source_id};