diff options
author | bunnei <bunneidev@gmail.com> | 2021-10-19 18:55:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-19 18:55:50 +0200 |
commit | c871320760ed050168fd74969a6ef9fba3cf535c (patch) | |
tree | 7127f59acb371f15b80b143ffb0d4bcda28f035e /src/core/core.cpp | |
parent | Merge pull request #7173 from Morph1984/invalidate-unmap (diff) | |
parent | settings: Remove std::chrono usage (diff) | |
download | yuzu-c871320760ed050168fd74969a6ef9fba3cf535c.tar yuzu-c871320760ed050168fd74969a6ef9fba3cf535c.tar.gz yuzu-c871320760ed050168fd74969a6ef9fba3cf535c.tar.bz2 yuzu-c871320760ed050168fd74969a6ef9fba3cf535c.tar.lz yuzu-c871320760ed050168fd74969a6ef9fba3cf535c.tar.xz yuzu-c871320760ed050168fd74969a6ef9fba3cf535c.tar.zst yuzu-c871320760ed050168fd74969a6ef9fba3cf535c.zip |
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 3042d611b..3c75f42ae 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -196,8 +196,9 @@ struct System::Impl { cpu_manager.Initialize(); core_timing.Initialize([&system]() { system.RegisterHostThread(); }); - const auto current_time = std::chrono::duration_cast<std::chrono::seconds>( - std::chrono::system_clock::now().time_since_epoch()); + const auto posix_time = std::chrono::system_clock::now().time_since_epoch(); + const auto current_time = + std::chrono::duration_cast<std::chrono::seconds>(posix_time).count(); Settings::values.custom_rtc_differential = Settings::values.custom_rtc.value_or(current_time) - current_time; |