zpp
Zephyr C++20 Framework
|
timer class with only an expire callback More...
#include <timer.hpp>
Public Member Functions | |
basic_timer ()=delete | |
basic_timer (T_ExpireCallback ecb) noexcept | |
construct timer with an expire callback More... | |
Public Member Functions inherited from zpp::timer_base | |
~timer_base () | |
Destructor that stops the timer. More... | |
template<class T_Rep1 , class T_Period1 , class T_Rep2 , class T_Period2 > | |
void | start (const std::chrono::duration< T_Rep1, T_Period1 > &duration, const std::chrono::duration< T_Rep2, T_Period2 > &period) noexcept |
Start a timer with duration and period. More... | |
template<class T_Rep , class T_Period > | |
void | start (const std::chrono::duration< T_Rep, T_Period > &duration) noexcept |
Start a single shot timer with duration. More... | |
void | stop () noexcept |
Stop the timer. More... | |
auto | status () noexcept |
get the timer status More... | |
auto | sync () noexcept |
sync with the timer More... | |
std::chrono::nanoseconds | remaining_time () noexcept |
Get remaining time. More... | |
auto | native_handle () noexcept |
Zephyr native handle. More... | |
timer_base (const timer_base &)=delete | |
timer_base (timer_base &&)=delete | |
timer_base & | operator= (const timer_base &)=delete |
timer_base & | operator= (timer_base &&)=delete |
Additional Inherited Members | |
Protected Member Functions inherited from zpp::timer_base | |
timer_base () noexcept | |
timer class with only an expire callback
ExpireCallback | Type of the expire callback |
|
delete |
|
inlineexplicitnoexcept |
construct timer with an expire callback
ecb | the expire callback |
Definition at line 188 of file timer.hpp.
References zpp::timer_base::native_handle().