summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Timer.cpp
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2022-08-06 22:25:30 -0700
committerShawn Hoffman <godisgovernment@gmail.com>2022-08-06 22:25:30 -0700
commit6e94c20abdbb5284a78afbdca627f1528f78dbc3 (patch)
tree2909cf66d7b2318fd8475848f12504907cb91b48 /Source/Core/Common/Timer.cpp
parent292724b2280da23a2cebd5682d504a113bc45c83 (diff)
add TODO for chrono in GetLocalTimeSinceJan1970
Diffstat (limited to 'Source/Core/Common/Timer.cpp')
-rw-r--r--Source/Core/Common/Timer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/Common/Timer.cpp b/Source/Core/Common/Timer.cpp
index 5e4af1ef45..91381eebd3 100644
--- a/Source/Core/Common/Timer.cpp
+++ b/Source/Core/Common/Timer.cpp
@@ -68,6 +68,10 @@ u64 Timer::ElapsedMs() const
u64 Timer::GetLocalTimeSinceJan1970()
{
+ // TODO Would really, really like to use std::chrono here, but Windows did not support
+ // std::chrono::current_zone() until 19H1, and other compilers don't even provide support for
+ // timezone-related parts of chrono. Someday!
+ // see https://bugs.dolphin-emu.org/issues/13007#note-4
time_t sysTime, tzDiff, tzDST;
time(&sysTime);
tm* gmTime = localtime(&sysTime);