diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-04-23 06:09:49 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-06-08 03:44:42 +0200 |
commit | 9dcc7bde8bb05dbc62fa196bcbe1484762e66917 (patch) | |
tree | 0fe9233f208999ec2ac64b38afb96a3ae21661b3 /src/core/hle/service/time/time.cpp | |
parent | core_timing: Use CNTPCT as the guest CPU tick (diff) | |
download | yuzu-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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp index 868be60c5..7197ca30f 100644 --- a/src/core/hle/service/time/time.cpp +++ b/src/core/hle/service/time/time.cpp @@ -240,8 +240,8 @@ void Module::Interface::CalculateMonotonicSystemClockBaseTimePoint(HLERequestCon const auto current_time_point{steady_clock_core.GetCurrentTimePoint(system)}; if (current_time_point.clock_source_id == context.steady_time_point.clock_source_id) { - const auto ticks{Clock::TimeSpanType::FromTicks(system.CoreTiming().GetClockTicks(), - Core::Hardware::CNTFREQ)}; + const auto ticks{Clock::TimeSpanType::FromTicks<Core::Hardware::CNTFREQ>( + system.CoreTiming().GetClockTicks())}; const s64 base_time_point{context.offset + current_time_point.time_point - ticks.ToSeconds()}; IPC::ResponseBuilder rb{ctx, (sizeof(s64) / 4) + 2}; |