Class Timer

Class Documentation

class Timer

Public Types

enum DIAGNOSTIC_FLAGS

Values:

enumerator DIAG_COUNT
enumerator DIAG_RATE
enumerator DIAG_DURATION
enumerator DIAG_ALL
enumerator DIAG_MOST

Public Functions

inline Timer()
template<class T>
inline Timer(rclcpp::Node &nh, rclcpp::Duration period, void (T::* callback)(), T *obj)
inline Timer &operator=(const Timer &other)
inline rclcpp::Duration desiredPeriod() const
inline double desiredFrequency() const
inline void resetStatistics()
inline size_t ticks() const
inline double meanFrequencyHz() const
inline rclcpp::Duration meanPeriod() const
inline rclcpp::Duration minPeriod() const
inline rclcpp::Duration maxPeriod() const
inline double meanPeriodMilliseconds() const
inline double minPeriodMilliseconds() const
inline double maxPeriodMilliseconds() const
inline std::chrono::nanoseconds meanDuration() const
inline std::chrono::nanoseconds minDuration() const
inline std::chrono::nanoseconds maxDuration() const
inline double meanDurationMicroseconds() const
inline double minDurationMicroseconds() const
inline double maxDurationMicroseconds() const
inline void appendDiagnostics(diagnostic_updater::DiagnosticStatusWrapper &status, const std::string &name, const int flags)