Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lib/dolphin/os/OSTime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<chrono::system_clock::duration>(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<chrono::microseconds>(currentTime.time_since_epoch());
Expand Down