mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/sta-core.git
synced 2025-06-10 16:55:58 +00:00
Timer support added
This commit is contained in:
parent
53b583d56e
commit
751435d946
34
include/sta/timer.hpp
Normal file
34
include/sta/timer.hpp
Normal 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
|
Loading…
x
Reference in New Issue
Block a user