diff options
Diffstat (limited to 'include/libcamera/base/timer.h')
-rw-r--r-- | include/libcamera/base/timer.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/include/libcamera/base/timer.h b/include/libcamera/base/timer.h index 79882161..9646a0fe 100644 --- a/include/libcamera/base/timer.h +++ b/include/libcamera/base/timer.h @@ -2,13 +2,12 @@ /* * Copyright (C) 2019, Google Inc. * - * timer.h - Generic timer + * Generic timer */ -#ifndef __LIBCAMERA_BASE_TIMER_H__ -#define __LIBCAMERA_BASE_TIMER_H__ + +#pragma once #include <chrono> -#include <stdint.h> #include <libcamera/base/private.h> @@ -25,7 +24,6 @@ public: Timer(Object *parent = nullptr); ~Timer(); - 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(); @@ -33,7 +31,7 @@ public: std::chrono::steady_clock::time_point deadline() const { return deadline_; } - Signal<Timer *> timeout; + Signal<> timeout; protected: void message(Message *msg) override; @@ -47,5 +45,3 @@ private: }; } /* namespace libcamera */ - -#endif /* __LIBCAMERA_BASE_TIMER_H__ */ |