diff options
| author | 2021-03-13 23:15:54 -0800 | |
|---|---|---|
| committer | 2021-03-13 23:15:54 -0800 | |
| commit | d3a4a192fe26e251f521f0311b2d712f5db9918e (patch) | |
| tree | 9f1840ecfc0cb8a379fdf87de5a7af0d50a97a12 /src | |
| parent | Merge pull request #6053 from Morph1984/time-CalculateSpanBetween (diff) | |
| parent | time: Assign the current time point to the ClockSnapshot (diff) | |
| download | yuzu-d3a4a192fe26e251f521f0311b2d712f5db9918e.tar.gz yuzu-d3a4a192fe26e251f521f0311b2d712f5db9918e.tar.xz yuzu-d3a4a192fe26e251f521f0311b2d712f5db9918e.zip | |
Merge pull request #6054 from Morph1984/time-GetClockSnapshot
time: Assign the current time point to the ClockSnapshot
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/time/time.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/service/time/time.cpp b/src/core/hle/service/time/time.cpp index 16c942e21..78543688f 100644 --- a/src/core/hle/service/time/time.cpp +++ b/src/core/hle/service/time/time.cpp | |||
| @@ -140,6 +140,8 @@ ResultCode Module::Interface::GetClockSnapshotFromSystemClockContextInternal( | |||
| 140 | 140 | ||
| 141 | const auto current_time_point{ | 141 | const auto current_time_point{ |
| 142 | time_manager.GetStandardSteadyClockCore().GetCurrentTimePoint(system)}; | 142 | time_manager.GetStandardSteadyClockCore().GetCurrentTimePoint(system)}; |
| 143 | clock_snapshot.steady_clock_time_point = current_time_point; | ||
| 144 | |||
| 143 | if (const ResultCode result{Clock::ClockSnapshot::GetCurrentTime( | 145 | if (const ResultCode result{Clock::ClockSnapshot::GetCurrentTime( |
| 144 | clock_snapshot.user_time, current_time_point, clock_snapshot.user_context)}; | 146 | clock_snapshot.user_time, current_time_point, clock_snapshot.user_context)}; |
| 145 | result != RESULT_SUCCESS) { | 147 | result != RESULT_SUCCESS) { |