Go to the documentation of this file.
121 Rate(
const std::string& name,
const double timeStep);
248 static double getDuration(
const timespec& start,
const timespec& end);
255 static void addDuration(timespec& time,
const double duration);
Rate(const std::string &name, const double timeStep)
unsigned int numWarnings_
Counter storing how many times a time step took longer than the warning threshold.
double awakeTime_
Most recent time which elapsed between subsequent calls of sleep().
RateOptions options_
Rate options.
unsigned int getNumWarnings() const
timespec lastWarningPrintTime_
Point in time when the last warning message was printed.
double awakeTimeMean_
Mean of the time which elapsed between subsequent calls of sleep().
unsigned int getNumTimeSteps() const
RateOptions & getOptions()
const RateOptions & getOptions() const
double getAwakeTimeMean() const
unsigned int getNumErrors() const
const timespec & getSleepStartTime() const
const timespec & getSleepEndTime() const
unsigned int numTimeSteps_
Counter storing how many times sleep has been called.
double awakeTimeM2_
Helper variable to compute the variance of the time step which elapsed between subsequent calls of sl...
timespec sleepEndTime_
Point in time when the most recent sleep() ended.
double getAwakeTime() const
double getAwakeTimeStdDev() const
unsigned int numErrors_
Counter storing how many times a time step took longer than the error threshold, not considering warn...
static void addDuration(timespec &time, const double duration)
timespec lastErrorPrintTime_
Point in time when the last error message was printed.
static constexpr double SEC_PER_N_SEC
Factor storing seconds per nanoseconds.
static constexpr long int N_SEC_PER_SEC
Factor storing nanoseconds per seconds.
const timespec & getStepTime() const
double getAwakeTimeVar() const
static double getDuration(const timespec &start, const timespec &end)
timespec sleepStartTime_
Point in time when the most recent sleep() started.
bota_worker
Author(s):
autogenerated on Sat Apr 15 2023 02:53:50