diff options
| author | 2021-10-16 02:07:18 -0400 | |
|---|---|---|
| committer | 2021-10-17 00:37:49 -0400 | |
| commit | ef811c64259f0b83aa72c99bad9d4e48082129f8 (patch) | |
| tree | 68a10f30c76c06fe2cbd7893d6481e7372e57613 /src/core/core.cpp | |
| parent | Merge pull request #7190 from Morph1984/missing-ui-main (diff) | |
| download | yuzu-ef811c64259f0b83aa72c99bad9d4e48082129f8.tar.gz yuzu-ef811c64259f0b83aa72c99bad9d4e48082129f8.tar.xz yuzu-ef811c64259f0b83aa72c99bad9d4e48082129f8.zip | |
settings: Remove std::chrono usage
Alleviates the dependency on chrono for all files that include settings.h
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 { | |||
| 196 | cpu_manager.Initialize(); | 196 | cpu_manager.Initialize(); |
| 197 | core_timing.Initialize([&system]() { system.RegisterHostThread(); }); | 197 | core_timing.Initialize([&system]() { system.RegisterHostThread(); }); |
| 198 | 198 | ||
| 199 | const auto current_time = std::chrono::duration_cast<std::chrono::seconds>( | 199 | const auto posix_time = std::chrono::system_clock::now().time_since_epoch(); |
| 200 | std::chrono::system_clock::now().time_since_epoch()); | 200 | const auto current_time = |
| 201 | std::chrono::duration_cast<std::chrono::seconds>(posix_time).count(); | ||
| 201 | Settings::values.custom_rtc_differential = | 202 | Settings::values.custom_rtc_differential = |
| 202 | Settings::values.custom_rtc.value_or(current_time) - current_time; | 203 | Settings::values.custom_rtc.value_or(current_time) - current_time; |
| 203 | 204 | ||