sta-core/include/sta/timer.hpp
2023-09-12 14:27:40 +02:00

34 lines
560 B
C++

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