|
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_TIMER_H_
20 #define LOCALIZATION_COMMON_TIMER_H_
32 explicit Timer(
const std::string& timer_name =
"");
36 void LogToFile(std::ofstream& ofstream)
const;
37 void LogToCsv(std::ofstream& ofstream)
const;
38 void LogEveryN(
const int num_events_per_log)
const;
39 void VlogEveryN(
const int num_events_per_log,
const int level)
const;
43 void Vlog(
const int level = 2)
const;
47 std::chrono::time_point<std::chrono::steady_clock> start_time_;
52 #endif // LOCALIZATION_COMMON_TIMER_H_
Definition: averager.h:33
void LogToCsv(std::ofstream &ofstream) const
Definition: timer.cc:34
void VlogEveryN(const int num_events_per_log, const int level) const
Definition: timer.cc:38
void Start()
Definition: timer.cc:23
double last_value() const
Definition: timer.cc:59
void Log() const
Definition: timer.cc:30
Definition: averager.h:34
void Vlog(const int level=2) const
Definition: timer.cc:57
void StopAndLog()
Definition: timer.cc:42
void LogToFile(std::ofstream &ofstream) const
Definition: timer.cc:32
void Stop()
Definition: timer.cc:24
void StopAndLogEveryN(const int num_events_per_log)
Definition: timer.cc:47
void LogEveryN(const int num_events_per_log) const
Definition: timer.cc:36
Timer(const std::string &timer_name="")
Definition: timer.cc:22
void StopAndVlogEveryN(const int num_events_per_log, const int level)
Definition: timer.cc:52