Base: Use std::chrono for time handling

Replace platform specific implementations with standard C++ std::chrono.
As time_t is now 64-bit on all supported systems, use it to set the clock.
This commit is contained in:
Ladislav Michl
2023-11-15 10:28:15 +01:00
parent de1305413e
commit 159fe5c21f
6 changed files with 66 additions and 229 deletions

View File

@@ -37,6 +37,7 @@
#include <cassert>
#include <ctime>
#include <cfloat>
#include <chrono>
#ifdef FC_OS_WIN32
#define _USE_MATH_DEFINES
#endif // FC_OS_WIN32