|
| StaticSoftwareTimer (Function &&function, Args &&... args) |
| StaticSoftwareTimer's constructor. More...
|
|
constexpr | SoftwareTimerCommon () |
| SoftwareTimerCommon's constructor. More...
|
|
| ~SoftwareTimerCommon () override |
| SoftwareTimerCommon's destructor. More...
|
|
bool | isRunning () const override |
|
int | start (TickClock::time_point timePoint, TickClock::duration period={}) override |
| Starts the timer. More...
|
|
int | stop () override |
| Stops the timer. More...
|
|
| SoftwareTimerCommon (const SoftwareTimerCommon &)=delete |
|
| SoftwareTimerCommon (SoftwareTimerCommon &&)=default |
|
const SoftwareTimerCommon & | operator= (const SoftwareTimerCommon &)=delete |
|
SoftwareTimerCommon & | operator= (SoftwareTimerCommon &&)=delete |
|
int | start (TickClock::duration duration, TickClock::duration period={}) |
| Starts the timer. More...
|
|
template<typename Rep1 , typename Period1 , typename Rep2 = TickClock::rep, typename Period2 = TickClock::period> |
int | start (const std::chrono::duration< Rep1, Period1 > duration, const std::chrono::duration< Rep2, Period2 > period={}) |
| Starts the timer. More...
|
|
virtual int | start (TickClock::time_point timePoint, TickClock::duration period={})=0 |
| Starts the timer. More...
|
|
template<typename Duration , typename Rep = TickClock::rep, typename Period = TickClock::period> |
int | start (const std::chrono::time_point< TickClock, Duration > timePoint, const std::chrono::duration< Rep, Period > period={}) |
| Starts the timer. More...
|
|
virtual | ~SoftwareTimer ()=default |
| SoftwareTimer's destructor. More...
|
|
int | start (TickClock::duration duration, TickClock::duration period={}) |
| Starts the timer. More...
|
|
template<typename Rep1 , typename Period1 , typename Rep2 = TickClock::rep, typename Period2 = TickClock::period> |
int | start (const std::chrono::duration< Rep1, Period1 > duration, const std::chrono::duration< Rep2, Period2 > period={}) |
| Starts the timer. More...
|
|
template<typename Duration , typename Rep = TickClock::rep, typename Period = TickClock::period> |
int | start (const std::chrono::time_point< TickClock, Duration > timePoint, const std::chrono::duration< Rep, Period > period={}) |
| Starts the timer. More...
|
|
template<typename Function, typename... Args>
class distortos::StaticSoftwareTimer< Function, Args >
StaticSoftwareTimer class is a templated interface for software timer.
- Template Parameters
-
Function | is the function that will be executed |
Args | are the arguments for function |