From b3638f64d8fb5dcd104c6479f3ecefe20e73f75d Mon Sep 17 00:00:00 2001 From: baxlek <115663151+baxlek@users.noreply.github.com> Date: Tue, 23 Jun 2026 13:34:04 -0500 Subject: [PATCH] Use system_clock for current wall-clock time Replaced steady_clock with system_clock to get current time. --- lib/dolphin/os/OSTime.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/dolphin/os/OSTime.cpp b/lib/dolphin/os/OSTime.cpp index 4f051a7640..bc4bbac04b 100644 --- a/lib/dolphin/os/OSTime.cpp +++ b/lib/dolphin/os/OSTime.cpp @@ -59,9 +59,8 @@ OSTime OSGetTime() { // GCN epoch: 2000-01-01 00:00:00 UTC = 946684800 seconds after Unix epoch static constexpr s64 gcnEpochUnix = 946684800LL; - // Get current wall-clock time - auto elapsed = chrono::steady_clock::now() - startupSteadyTime; - auto currentTime = startupTime + chrono::duration_cast(elapsed); + // Get current wall-clock time directly from system_clock + auto currentTime = chrono::system_clock::now(); // Convert to seconds since Unix epoch, then offset to GCN epoch auto sinceUnix = chrono::duration_cast(currentTime.time_since_epoch());