summaryrefslogtreecommitdiff
path: root/src/cam/capture.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-09-14 03:40:47 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-09-14 15:05:45 +0300
commitcecfeed61e8bcb4b53c2ed8e1b26d8c8af38b8e3 (patch)
tree783fca9b32651efdca054ad152528b40f2566a74 /src/cam/capture.h
parent98dff063f2f497434978a46f9a676307365fd878 (diff)
libcamera: Switch to the std::chrono API
Replace the clock_gettime()-based API with durations expressed as integers with the std::chrono API. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/cam/capture.h')
-rw-r--r--src/cam/capture.h3
1 files changed, 2 insertions, 1 deletions
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 <chrono>
#include <memory>
#include <libcamera/camera.h>
@@ -35,7 +36,7 @@ private:
std::map<libcamera::Stream *, std::string> streamName_;
BufferWriter *writer_;
- uint64_t last_;
+ std::chrono::steady_clock::time_point last_;
};
#endif /* __CAM_CAPTURE_H__ */