This is an automated email from the ASF dual-hosted git repository.
rmiddleton pushed a commit to branch LOGCXX-514
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
The following commit(s) were added to refs/heads/LOGCXX-514 by this push:
new 77dac4c1 Change to system_clock
77dac4c1 is described below
commit 77dac4c1b61e72d14221620c3527556480f01e01
Author: Robert Middleton <[email protected]>
AuthorDate: Thu Dec 1 20:12:24 2022 -0500
Change to system_clock
---
src/main/cpp/loggingevent.cpp | 2 +-
src/main/include/log4cxx/spi/loggingevent.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/cpp/loggingevent.cpp b/src/main/cpp/loggingevent.cpp
index 2dfe0974..455add52 100644
--- a/src/main/cpp/loggingevent.cpp
+++ b/src/main/cpp/loggingevent.cpp
@@ -436,7 +436,7 @@ const log4cxx::spi::LocationInfo&
LoggingEvent::getLocationInformation() const
return m_priv->locationInfo;
}
-std::chrono::time_point<std::chrono::high_resolution_clock>
LoggingEvent::getChronoTimeStamp() const{
+std::chrono::time_point<std::chrono::system_clock>
LoggingEvent::getChronoTimeStamp() const{
return m_priv->chronoTimeStamp;
}
diff --git a/src/main/include/log4cxx/spi/loggingevent.h
b/src/main/include/log4cxx/spi/loggingevent.h
index ac8887bc..8641fcf6 100644
--- a/src/main/include/log4cxx/spi/loggingevent.h
+++ b/src/main/include/log4cxx/spi/loggingevent.h
@@ -108,7 +108,7 @@ class LOG4CXX_EXPORT LoggingEvent :
was created. */
log4cxx_time_t getTimeStamp() const;
- std::chrono::time_point<std::chrono::high_resolution_clock>
getChronoTimeStamp() const;
+ std::chrono::time_point<std::chrono::system_clock>
getChronoTimeStamp() const;
/* Return the file where this log statement was written. */
const log4cxx::spi::LocationInfo& getLocationInformation()
const;