We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40e9e43 commit ed4ac8fCopy full SHA for ed4ac8f
source/main.cpp
@@ -179,6 +179,13 @@ void updateTime() {
179
180
time += OSSecondsToTicks(offsetMinutes * 60);
181
182
+ OSTime currentTime = OSGetTime();
183
+ int timeDifference = abs(time - currentTime);
184
+
185
+ if (static_cast<uint64_t>(timeDifference) <= OSMillisecondsToTicks(250)) {
186
+ return; // Time difference is within 250 milliseconds, no need to update.
187
+ }
188
189
SetSystemTime(time); // This finally sets the console time.
190
}
191
0 commit comments