#include <time_util.h>
Public Types | |
typedef boost::shared_ptr < WallDurationTimer > | Ptr |
Public Member Functions | |
virtual void | clearBuffer () |
virtual double | latestSec () |
virtual double | meanSec () |
virtual void | report (ros::WallDuration &duration) |
virtual ScopedWallDurationReporter | reporter () |
virtual ScopedWallDurationReporter | reporter (ros::Publisher &pub_latest, ros::Publisher &pub_average) |
virtual size_t | sampleNum () |
WallDurationTimer (const int max_num) | |
Protected Attributes | |
boost::circular_buffer < ros::WallDuration > | buffer_ |
const int | max_num_ |
Definition at line 65 of file time_util.h.
typedef boost::shared_ptr<WallDurationTimer> jsk_recognition_utils::WallDurationTimer::Ptr |
Definition at line 68 of file time_util.h.
jsk_recognition_utils::WallDurationTimer::WallDurationTimer | ( | const int | max_num | ) |
Definition at line 86 of file time_util.cpp.
void jsk_recognition_utils::WallDurationTimer::clearBuffer | ( | ) | [virtual] |
Definition at line 113 of file time_util.cpp.
double jsk_recognition_utils::WallDurationTimer::latestSec | ( | ) | [virtual] |
Definition at line 108 of file time_util.cpp.
double jsk_recognition_utils::WallDurationTimer::meanSec | ( | ) | [virtual] |
Definition at line 118 of file time_util.cpp.
void jsk_recognition_utils::WallDurationTimer::report | ( | ros::WallDuration & | duration | ) | [virtual] |
Definition at line 91 of file time_util.cpp.
Definition at line 96 of file time_util.cpp.
ScopedWallDurationReporter jsk_recognition_utils::WallDurationTimer::reporter | ( | ros::Publisher & | pub_latest, |
ros::Publisher & | pub_average | ||
) | [virtual] |
Definition at line 101 of file time_util.cpp.
size_t jsk_recognition_utils::WallDurationTimer::sampleNum | ( | ) | [virtual] |
Definition at line 127 of file time_util.cpp.
boost::circular_buffer<ros::WallDuration> jsk_recognition_utils::WallDurationTimer::buffer_ [protected] |
Definition at line 81 of file time_util.h.
const int jsk_recognition_utils::WallDurationTimer::max_num_ [protected] |
Definition at line 80 of file time_util.h.