summaryrefslogtreecommitdiff
path: root/src/libcamera/include/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcamera/include/log.h')
-rw-r--r--src/libcamera/include/log.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libcamera/include/log.h b/src/libcamera/include/log.h
index 9b203f97..ee0b4069 100644
--- a/src/libcamera/include/log.h
+++ b/src/libcamera/include/log.h
@@ -7,8 +7,11 @@
#ifndef __LIBCAMERA_LOG_H__
#define __LIBCAMERA_LOG_H__
+#include <chrono>
#include <sstream>
+#include "utils.h"
+
namespace libcamera {
enum LogSeverity {
@@ -60,7 +63,7 @@ public:
std::ostream &stream() { return msgStream_; }
- const struct timespec &timestamp() const { return timestamp_; }
+ const utils::time_point &timestamp() const { return timestamp_; }
LogSeverity severity() const { return severity_; }
const LogCategory &category() const { return category_; }
const std::string &fileInfo() const { return fileInfo_; }
@@ -72,7 +75,7 @@ private:
std::ostringstream msgStream_;
const LogCategory &category_;
LogSeverity severity_;
- struct timespec timestamp_;
+ utils::time_point timestamp_;
std::string fileInfo_;
};