From 1498bcc449bd1c0756aaa1b1e33251288091f9ab Mon Sep 17 00:00:00 2001 From: CarlWachter Date: Mon, 18 Sep 2023 20:44:26 +0200 Subject: [PATCH] Added isRunning to timer --- include/sta/timer.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/sta/timer.hpp b/include/sta/timer.hpp index f8c8a72..0ea4a07 100644 --- a/include/sta/timer.hpp +++ b/include/sta/timer.hpp @@ -27,6 +27,13 @@ namespace sta * */ virtual void stop() = 0; + /** + * @brief Check if timer is running. + * + * @return true if timer is running + * @return false if timer is not running + */ + virtual bool isRunning() = 0; }; } // namespace sta