zpp
Zephyr C++20 Framework
|
timer class with no callbacks used for syncing only More...
#include <timer.hpp>
Public Member Functions | |
sync_timer () noexcept | |
constuctor for the sync timer 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 | |
|
inlinenoexcept |
constuctor for the sync timer
Definition at line 221 of file timer.hpp.
References zpp::timer_base::native_handle().