From 9ab998688c255d0449aade05c2971b650c284ace Mon Sep 17 00:00:00 2001 From: dongresource Date: Sat, 6 Nov 2021 21:18:36 +0100 Subject: [PATCH] Fix time handling on systems with 32-bit time_t --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index c4e0345..79fd565 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -184,7 +184,7 @@ size_t U8toU16(std::string src, char16_t* des, size_t max) { time_t getTime() { using namespace std::chrono; - milliseconds value = duration_cast((time_point_cast(high_resolution_clock::now())).time_since_epoch()); + milliseconds value = duration_cast((time_point_cast(steady_clock::now())).time_since_epoch()); return (time_t)value.count(); }