|
NASA Astrobee Robot Software
0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
|
Go to the documentation of this file.
19 #ifndef LOCALIZATION_COMMON_RATE_TIMER_H_
20 #define LOCALIZATION_COMMON_RATE_TIMER_H_
25 #include <boost/optional.hpp>
33 explicit RateTimer(
const std::string& timer_name =
"");
37 void LogEveryN(
const int num_events_per_log)
const;
38 void VlogEveryN(
const int num_events_per_log,
const int level)
const;
42 void Vlog(
const int level = 2)
const;
45 std::chrono::time_point<std::chrono::steady_clock> start_time_;
51 #endif // LOCALIZATION_COMMON_RATE_TIMER_H_
Definition: averager.h:33
boost::optional< double > LastValue()
Definition: rate_timer.cc:37
void RecordAndLogEveryN(const int num_events_per_log)
Definition: rate_timer.cc:47
void Log() const
Definition: rate_timer.cc:57
void Vlog(const int level=2) const
Definition: rate_timer.cc:72
Definition: averager.h:34
Definition: rate_timer.h:31
void VlogEveryN(const int num_events_per_log, const int level) const
Definition: rate_timer.cc:67
void Record()
Definition: rate_timer.cc:23
RateTimer(const std::string &timer_name="")
Definition: rate_timer.cc:22
void RecordAndLog()
Definition: rate_timer.cc:42
void LogEveryN(const int num_events_per_log) const
Definition: rate_timer.cc:62
void RecordAndVlogEveryN(const int num_events_per_log, const int level)
Definition: rate_timer.cc:52