Go to the documentation of this file.
174 std::int64_t
toDays()
const;
266 Duration(std::int64_t microSeconds);
std::int64_t toMinutes() const
Returns the amount of minutes.
Duration & operator-=(const Duration &rhs)
Duration & operator*=(double rhs)
std::int64_t toDays() const
Returns the amount of days.
double toSecondsDouble() const
Returns the amount of seconds.
Duration & operator+=(const Duration &rhs)
bool operator==(const Duration &rhs) const
double toMilliSecondsDouble() const
Returns the amount of milliseconds.
double toHoursDouble() const
Returns the amount of hours.
std::ostream & operator<<(std::ostream &out, const DateTime &rhs)
bool isPositive() const
Tests whether the duration is positive (value in µs > 0).
static Duration MicroSecondsDouble(double microSeconds)
Constructs a duration in microseconds.
Duration operator+(const Duration &rhs) const
static Duration Hours(std::int64_t hours)
Constructs a duration in hours.
static Duration DaysDouble(double days)
Constructs a duration in days.
static Duration Seconds(std::int64_t seconds)
Constructs a duration in seconds.
bool operator>=(const Duration &rhs) const
static Duration HoursDouble(double hours)
Constructs a duration in hours.
bool operator<=(const Duration &rhs) const
static Duration SecondsDouble(double seconds)
Constructs a duration in seconds.
static Duration MilliSecondsDouble(double milliSeconds)
Constructs a duration in milliseconds.
static Duration Minutes(std::int64_t minutes)
Constructs a duration in minutes.
double toMinutesDouble() const
Returns the amount of minutes.
std::int64_t toHours() const
Returns the amount of hours.
bool operator<(const Duration &rhs) const
double operator/(const Duration &rhs) const
std::int64_t _microSeconds
Current duration in microseconds.
std::string toDurationString() const
String representation of the current duration in minimal/default format.
static Duration MinutesDouble(double minutes)
Constructs a duration in minutes.
std::int64_t toMilliSeconds() const
Returns the amount of milliseconds.
std::int64_t toMicroSeconds() const
Returns the amount of microseconds.
bool operator!=(const Duration &rhs) const
Duration & operator/=(double rhs)
static Duration Days(std::int64_t days)
Constructs a duration in days.
static Duration MicroSeconds(std::int64_t microSeconds)
Constructs a duration in microseconds.
double toDaysDouble() const
Returns the amount of days.
bool operator>(const Duration &rhs) const
Duration operator*(double rhs) const
std::int64_t toSeconds() const
Returns the amount of seconds.
armarx::core::time::Duration Duration
This file offers overloads of toIce() and fromIce() functions for STL container types.
static Duration MilliSeconds(std::int64_t milliSeconds)
Constructs a duration in milliseconds.
Duration operator-() const
double toMicroSecondsDouble() const
Returns the amount of microseconds.
Duration()
Constructs a zero-duration.