diff options
author | bunnei <bunneidev@gmail.com> | 2021-03-13 23:15:54 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-13 23:15:54 -0800 |
commit | d3a4a192fe26e251f521f0311b2d712f5db9918e (patch) | |
tree | 9f1840ecfc0cb8a379fdf87de5a7af0d50a97a12 | |
parent | 3b85ac2ac4d72ca4acf83ef9642b9a42e912993e (diff) | |
parent | 2490ffbbce06659f0171a257ff08be6a5ac8fb2e (diff) |
Merge pull request #6054 from Morph1984/time-GetClockSnapshot
time: Assign the current time point to the ClockSnapshot
-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( const auto current_time_point{ time_manager.GetStandardSteadyClockCore().GetCurrentTimePoint(system)}; + clock_snapshot.steady_clock_time_point = current_time_point; + if (const ResultCode result{Clock::ClockSnapshot::GetCurrentTime( clock_snapshot.user_time, current_time_point, clock_snapshot.user_context)}; result != RESULT_SUCCESS) { |