mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-01-31 03:25:13 +00:00
Use steady_clock instead of system_clock
This commit is contained in:
parent
f2cea97da0
commit
6f94f5d6b8
@ -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) {
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user