Template Class WallTimer

Inheritance Relationships

Base Type

Class Documentation

template<typename FunctorT>
class WallTimer : public agnocast::GenericTimer<FunctorT>

Timer that uses a steady (wall) clock.

Convenience specialization of GenericTimer that automatically creates an RCL_STEADY_TIME clock, suitable for wall-time periodic execution.

Template Parameters:

FunctorT – Callback type; must be invocable as void() or void(TimerBase&).

Public Functions

inline WallTimer(uint32_t timer_id, std::chrono::nanoseconds period, FunctorT &&callback)