From 751435d9467ca8d5ae5f63e50e4238724dcf877b Mon Sep 17 00:00:00 2001 From: "@CarlWachter" Date: Tue, 12 Sep 2023 14:27:40 +0200 Subject: [PATCH] Timer support added --- include/sta/timer.hpp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 include/sta/timer.hpp diff --git a/include/sta/timer.hpp b/include/sta/timer.hpp new file mode 100644 index 0000000..f8c8a72 --- /dev/null +++ b/include/sta/timer.hpp @@ -0,0 +1,34 @@ +/** + * @file + * @brief Timer interface definition. + */ +#ifndef STA_CORE_TIMER_HPP +#define STA_CORE_TIMER_HPP + + +namespace sta +{ + /** + * @brief Interface for timer objects. + * + * @ingroup sta_core + */ + class Timer + { + public: + /** + * @brief Start Timer. + * + * @param time in milliseconds + */ + virtual void start(uint32_t millis) = 0; + /** + * @brief Stop Timer. + * + */ + virtual void stop() = 0; + }; +} // namespace sta + + +#endif //STA_CORE_TIMER_HPP \ No newline at end of file