20#include "drivers/HighResClock.h"
21#include "drivers/Ticker.h"
70 return scheduled_time() - _ticker_data.now();
73#if !defined(DOXYGEN_ONLY)
75 using TickerBase::TickerBase;
88 return get_time_point(event);
109 return HighResClock::time_point{TimeoutBase::scheduled_time().time_since_epoch()};
124 TimeoutBase::attach_absolute(std::forward<F>(func), TickerDataClock::time_point{abs_time.time_since_epoch()});
A C++11 Clock representing the HAL us_ticker.
A Ticker is used to call a function at a recurring interval.
A partial implementation of a C++11 Clock representing a HAL ticker.
A Timeout is used to call a function at a point in the future.
std::chrono::microseconds remaining_time() const
Return time remaining until callback.
void attach_absolute(F &&func, HighResClock::time_point abs_time)
Attach a function to be called by the Timeout, specifying the absolute time.
HighResClock::time_point scheduled_time() const
Return scheduled callback time.