Use steady_clock instead of system_clock

This commit is contained in:
OpenSauce04 2026-01-21 20:36:36 +00:00
parent f2cea97da0
commit 6f94f5d6b8
2 changed files with 2 additions and 2 deletions

View File

@ -1119,7 +1119,7 @@ void GameList::RefreshGameDirectory() {
return;
}
const auto time_now = std::chrono::system_clock::now();
const auto time_now = std::chrono::steady_clock::now();
// Max of 1 refresh every 1 second.
if (time_last_refresh + std::chrono::seconds(1) > time_now) {

View File

@ -154,7 +154,7 @@ private:
const PlayTime::PlayTimeManager& play_time_manager;
std::chrono::time_point<std::chrono::system_clock> time_last_refresh;
std::chrono::time_point<std::chrono::steady_clock> time_last_refresh;
};
class GameListPlaceholder : public QWidget {