Go to the documentation of this file.
7 #include <SimoxUtility/algorithm/string/string_tools.h>
16 _cycleDuration{cycleDuration}
60 return std::numeric_limits<double>::infinity();
257 const double cyclesPerSecond = cyclesPerDuration / duration.
toSecondsDouble();
265 return static_cast<double>(cyclesPerDuration) / duration;
272 return static_cast<double>(cyclesPerDuration) / duration;
bool operator!=(const Frequency &rhs) const
double toSecondsDouble() const
Returns the amount of seconds.
bool operator>=(const Frequency &rhs) const
bool operator<(const Frequency &rhs) const
double operator/(const Frequency &rhs) const
std::ostream & operator<<(std::ostream &out, const DateTime &rhs)
Duration _cycleDuration
Current cycle duration.
bool operator>(const Frequency &rhs) const
static Duration Seconds(std::int64_t seconds)
Constructs a duration in seconds.
Duration toCycleDuration() const
Frequency(const Duration &cycleDuration)
bool operator<=(const Frequency &rhs) const
static Frequency HertzDouble(double hertz)
bool operator==(const Frequency &rhs) const
Frequency & operator+=(const Frequency &rhs)
Frequency operator+(const Frequency &rhs) const
const std::string & to_string(const std::string &s)
Frequency operator-(const Frequency &rhs) const
std::int64_t toHertz() const
Frequency & operator-=(const Frequency &rhs)
Frequency operator*(double rhs) const
static Frequency Hertz(std::int64_t hertz)
Frequency & operator*=(double rhs)
double toHertzDouble() const
std::string toFrequencyString() const
Frequency & operator/=(double rhs)
static Duration MicroSeconds(std::int64_t microSeconds)
Constructs a duration in microseconds.
Frequency operator/(const double cyclesPerDuration, const Duration &duration)