summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-06 06:42:09 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-07 06:14:49 +0300
commit9d250417a2583c2cad663fe3d8a93959182e3b2b (patch)
treed87f00c05f70cb53c1383df3fcfb6b77319fb564 /include
parentada18bf65a1c343b6994bfd9f23b39aae8d9a9c5 (diff)
libcamera: timer: Add start() method with absolute deadline
The Timer class is started using a timer duration. To help callers that require waiting for an absolute deadline, add a start() overload that takes a std::chrono::steady_clock::time_point value. This will be used by IPAs. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/timer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libcamera/timer.h b/include/libcamera/timer.h
index 3540efb4..34e7b8ac 100644
--- a/include/libcamera/timer.h
+++ b/include/libcamera/timer.h
@@ -25,6 +25,7 @@ public:
void start(unsigned int msec) { start(std::chrono::milliseconds(msec)); }
void start(std::chrono::milliseconds duration);
+ void start(std::chrono::steady_clock::time_point deadline);
void stop();
bool isRunning() const;