69 TimeSpan (
int hours,
int minutes,
int seconds,
int nanoseconds = 0);
77 TimeSpan (
int days,
int hours,
int minutes,
int seconds,
int nanoseconds);
81 TimeSpan (
long long totalSeconds,
int nanoseconds);
87 long long totalSeconds()
const;
107 int milliseconds()
const;
111 int microseconds()
const;
115 int nanoseconds()
const;
147 static TimeSpan deserialize (
const std::string& str);
171 toString (str, format);
bool operator>(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
long long totalSeconds() const
Whole number of seconds in time interval.
bool operator==(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
TimeSpanFormats::Enum TimeSpanFormat
Time span format.
bool operator!=(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
bool operator<(const FixedPointDecimal< Mantissa, Exponent > &left, const FixedPointDecimal< Mantissa, Exponent > &right)
Compares two fixed-point decimals.
void toString(std::string &str, TimeSpanFormat format=TimeSpanFormats::SDHHMMSSnsec) const
static const TimeSpan Zero
Time interval of zero length.