From 1ae7cdd512a28a973aaa087f4516baca1cae665b Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 11 Jun 2025 16:35:31 +0200 Subject: Core/Common: Update PCH content to include most commonly used headers --- src/common/Logging/Log.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/common/Logging/Log.cpp') diff --git a/src/common/Logging/Log.cpp b/src/common/Logging/Log.cpp index b64aec29866..643f0c8483c 100644 --- a/src/common/Logging/Log.cpp +++ b/src/common/Logging/Log.cpp @@ -19,7 +19,6 @@ #include "AppenderConsole.h" #include "AppenderFile.h" #include "Config.h" -#include "Duration.h" #include "Errors.h" #include "LogMessage.h" #include "LogOperation.h" @@ -263,8 +262,7 @@ Logger const* Log::GetLoggerByType(std::string_view type) const std::string Log::GetTimestampStr() { - time_t tt = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()); - return TimeToTimestampStr(tt); + return TimeToTimestampStr(time(nullptr)); } bool Log::SetLogLevel(std::string const& name, int32 newLeveli, bool isLogger /* = true */) -- cgit v1.2.3