We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0549581 commit b3638f6Copy full SHA for b3638f6
1 file changed
lib/dolphin/os/OSTime.cpp
@@ -59,9 +59,8 @@ OSTime OSGetTime() {
59
// GCN epoch: 2000-01-01 00:00:00 UTC = 946684800 seconds after Unix epoch
60
static constexpr s64 gcnEpochUnix = 946684800LL;
61
62
- // Get current wall-clock time
63
- auto elapsed = chrono::steady_clock::now() - startupSteadyTime;
64
- 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();
65
66
// Convert to seconds since Unix epoch, then offset to GCN epoch
67
auto sinceUnix = chrono::duration_cast<chrono::microseconds>(currentTime.time_since_epoch());
0 commit comments