Go to the documentation of this file.
29 #ifndef SWRI_ROSCPP_TIMER_H_
30 #define SWRI_ROSCPP_TIMER_H_
92 const std::string &
name,
126 return impl_->desiredPeriod();
138 return impl_->resetStatistics();
144 return impl_->ticks();
150 return impl_->meanFrequencyHz();
156 return impl_->meanPeriod();
162 return impl_->minPeriod();
168 return impl_->maxPeriod();
174 return impl_->meanPeriod().toNSec() / 1000000.0;
180 return impl_->minPeriod().toNSec() / 1000000.0;
186 return impl_->maxPeriod().toNSec() / 1000000.0;
192 return impl_->meanDuration();
198 return impl_->minDuration();
204 return impl_->maxDuration();
210 return impl_->meanDuration().toNSec() / 1000.0;
216 return impl_->minDuration().toNSec() / 1000.0;
222 return impl_->maxDuration().toNSec() / 1000.0;
229 const std::string &
name,
248 "min period: N/A ms, mean frequency: N/A hz, max period: N/A ms");
252 "min period: %.2f ms, mean frequency: %.2f hz, max period: %.2f ms",
262 "min: N/A us, mean: N/A us, max: N/A us");
265 "min: %.2f us, mean: %.2f us, max: %.2f us",
273 #endif // SWRI_ROSCPP_TIMER_H_
double maxDurationMicroseconds() const
ros::WallDuration minDuration() const
void add(const std::string &key, const bool &b)
double minPeriodMilliseconds() const
double meanFrequencyHz() const
ros::Duration minPeriod() const
ros::WallDuration meanDuration() const
ros::Duration desiredPeriod() const
ros::WallDuration maxDuration() const
void appendDiagnostics(diagnostic_updater::DiagnosticStatusWrapper &status, const std::string &name, const int flags)
ros::Duration maxPeriod() const
double desiredFrequency() const
double meanPeriodMilliseconds() const
double maxPeriodMilliseconds() const
Timer & operator=(const Timer &other)
ros::Duration meanPeriod() const
void addf(const std::string &key, const char *format,...)
boost::shared_ptr< TimerImpl > impl_
double meanDurationMicroseconds() const
double minDurationMicroseconds() const
swri_roscpp
Author(s): P. J. Reed
autogenerated on Fri Aug 2 2024 08:39:15