Go to the documentation of this file.
67 std::atomic<clockid_t>
clockId_{ CLOCK_MONOTONIC };
79 explicit RateOptions(std::string name =
"",
const double timeStep = 0.0,
const double maxTimeStepFactorWarning = 1.0,
80 const double maxTimeStepFactorError = 10.0,
const bool enforceRate =
true,
81 const clockid_t clockId = CLOCK_MONOTONIC)
105 :
name_(std::move(other.name_))
std::atomic< clockid_t > clockId_
Linux clock ID.
std::atomic< bool > enforceRate_
Boolean indicating whether the rate should be enforced.
std::string name_
Name for printing.
virtual ~RateOptions()=default
std::atomic< double > maxTimeStepFactorError_
If the awake time is bigger than the time step multiplied by this factor, it counts as an error.
std::atomic< double > maxTimeStepFactorWarning_
If the awake time is bigger than the time step multiplied by this factor, it counts as an warning.
RateOptions(const RateOptions &other)
virtual bool isValid() const
RateOptions(RateOptions &&other) noexcept
RateOptions(std::string name="", const double timeStep=0.0, const double maxTimeStepFactorWarning=1.0, const double maxTimeStepFactorError=10.0, const bool enforceRate=true, const clockid_t clockId=CLOCK_MONOTONIC)
RateOptions & operator=(const RateOptions &other)
std::atomic< double > timeStep_
Time step in seconds.
bota_worker
Author(s):
autogenerated on Sat Apr 15 2023 02:53:50