mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 06:25:46 +00:00
settings: Use std::chrono::seconds instead of s64 for RTC
This commit is contained in:
parent
921ea45baf
commit
63e948f483
6 changed files with 21 additions and 17 deletions
|
@ -96,8 +96,7 @@ struct System::Impl {
|
|||
kernel.Initialize();
|
||||
|
||||
const auto current_time = std::chrono::duration_cast<std::chrono::seconds>(
|
||||
std::chrono::system_clock::now().time_since_epoch())
|
||||
.count();
|
||||
std::chrono::system_clock::now().time_since_epoch());
|
||||
Settings::values.custom_rtc_differential =
|
||||
Settings::values.custom_rtc.value_or(current_time) - current_time;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue