From cecfeed61e8bcb4b53c2ed8e1b26d8c8af38b8e3 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 14 Sep 2019 03:40:47 +0300 Subject: libcamera: Switch to the std::chrono API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the clock_gettime()-based API with durations expressed as integers with the std::chrono API. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- src/cam/capture.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/cam/capture.h') diff --git a/src/cam/capture.h b/src/cam/capture.h index 1d4a25a8..ee0dc421 100644 --- a/src/cam/capture.h +++ b/src/cam/capture.h @@ -7,6 +7,7 @@ #ifndef __CAM_CAPTURE_H__ #define __CAM_CAPTURE_H__ +#include #include #include @@ -35,7 +36,7 @@ private: std::map streamName_; BufferWriter *writer_; - uint64_t last_; + std::chrono::steady_clock::time_point last_; }; #endif /* __CAM_CAPTURE_H__ */ -- cgit v1.2.1