31 explicit Duration(uint64_t milliseconds) noexcept;
38 Duration(std::chrono::duration<uint64_t, std::milli> duration) noexcept;
57 operator std::chrono::duration<uint64_t, std::milli>()
const noexcept;
64 double toSec()
const noexcept;
71 uint64_t
toMSec()
const noexcept;
bool operator==(const Duration &rhs) const noexcept
Compares two durations for equality.
bool operator<=(const Duration &rhs) const noexcept
Compares two durations.
Duration & operator*=(uint64_t rhs) noexcept
Performs multiplication.
Duration() noexcept
Creates a new Duration instance with zero milliseconds.
double toSec() const noexcept
Returns the stored duration in .
Duration & operator=(const Duration &)=default
Assigns the contents of one Duration to another.
std::chrono::duration< uint64_t, std::milli > duration_
bool operator<(const Duration &rhs) const noexcept
Compares two durations.
Duration operator+(const Duration &rhs) const noexcept
Performs addition.
bool operator>(const Duration &rhs) const noexcept
Compares two durations.
Duration & operator-=(const Duration &rhs) noexcept
Performs subtraction.
Represents a duration with millisecond resolution.
bool operator!=(const Duration &rhs) const noexcept
Compares two durations for inequality.
Duration & operator%=(const Duration &rhs) noexcept
Performs the modulo operation.
Duration operator*(uint64_t rhs) const noexcept
Performs multiplication.
uint64_t operator/(const Duration &rhs) const noexcept
Performs division.
Duration & operator/=(uint64_t rhs) noexcept
Performs division.
Duration operator%(const Duration &rhs) const noexcept
Performs the modulo operation.
uint64_t toMSec() const noexcept
Returns the stored duration in .
bool operator>=(const Duration &rhs) const noexcept
Compares two durations.
Duration operator-(const Duration &rhs) const noexcept
Performs subtraction.
Duration & operator+=(const Duration &rhs) noexcept
Performs addition.