Timer support added

This commit is contained in:
@CarlWachter 2023-09-12 14:27:40 +02:00
parent 53b583d56e
commit 751435d946

34
include/sta/timer.hpp Normal file
View File

@ -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