ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::time::TimePointBase< TClock, TDerived >::Duration Class Reference

Description:

template<typename TClock, typename TDerived>
class alib::time::TimePointBase< TClock, TDerived >::Duration

This inner class of TimePointBase represents durations, hence difference values of two values of the parent class.

Often, objects of this class are generated by the subtraction of TimePointBase values or by using methods TimePointBase::Age and TimePointBase::Since. Furthermore, class CalendarDuration (found in the module ALib Strings) can be used to convert durations to and from human-readable units (days, hours, minutes, etc.).

Friends

class TimePointBase

Definition at line 80 of file timepointbase.inl.

Public Type Index:

using TDuration = sc steady_clock::duration
 The value type for time spans.
 

Public Static Method Index:

static Duration FromAbsoluteDays (int64_t days)
 
static Duration FromAbsoluteHours (int64_t hours)
 
static Duration FromAbsoluteMicroseconds (int64_t microseconds)
 
static Duration FromAbsoluteMilliseconds (int64_t milliseconds)
 
static Duration FromAbsoluteMinutes (int64_t minutes)
 
static Duration FromAbsoluteSeconds (int64_t seconds)
 
static Duration FromDays (double days)
 
static Duration FromHours (double hours)
 
static Duration FromMicroseconds (double microseconds)
 
static Duration FromMilliseconds (double milliseconds)
 
static Duration FromMinutes (double minutes)
 
static Duration FromNanoseconds (int64_t nanoseconds)
 
static Duration FromSeconds (double seconds)
 
static Duration Import (const TDuration &timeSpan)
 

Public Method Index:

constexpr Duration ()
 Creates a zero-length time span.
 
 Duration (const TDuration &stdLibValue)
 
TDuration Export () const
 
integer InAbsoluteDays () const
 
integer InAbsoluteHours () const
 
int64_t InAbsoluteMicroseconds () const
 
int64_t InAbsoluteMilliseconds () const
 
int64_t InAbsoluteMinutes () const
 
int64_t InAbsoluteSeconds () const
 
double InDays () const
 
double InHertz (int qtyFractionalDigits=-1) const
 
double InHours () const
 
double InMicroseconds () const
 
double InMilliseconds () const
 
double InMinutes () const
 
int64_t InNanoseconds () const
 
double InSeconds () const
 
bool IsPositive () const
 
bool IsZero () const
 
bool operator!= (const Duration &other) const
 
bool operator!= (const TDuration &other) const
 
Duration operator* (double multiplier) const
 
Duration operator* (int64_t multiplier) const
 
Durationoperator*= (double multiplier)
 
Durationoperator*= (int64_t multiplier)
 
Duration operator+ (const Duration &rhs) const
 
Duration operator+ (const TDuration &rhs) const
 
Durationoperator+= (const Duration &other)
 
Durationoperator+= (const TDuration &other)
 
Duration operator- (const Duration &rhs) const
 
Duration operator- (const TDuration &rhs) const
 
Durationoperator-= (const Duration &other)
 
Durationoperator-= (const TDuration &other)
 
Duration operator/ (double divisor) const
 
Duration operator/ (int64_t divisor) const
 
Durationoperator/= (double divisor)
 
Durationoperator/= (int64_t divisor)
 
bool operator< (const Duration &other) const
 
bool operator< (const TDuration &other) const
 
bool operator<= (const Duration &other) const
 
bool operator<= (const TDuration &other) const
 
Durationoperator= (const TDuration &stdLibValue)
 
bool operator== (const Duration &other) const
 
bool operator== (const TDuration &other) const
 
bool operator> (const Duration &other) const
 
bool operator> (const TDuration &other) const
 
bool operator>= (const Duration &other) const
 
bool operator>= (const TDuration &other) const
 
DurationSetMaximum (const Duration &other)
 
DurationSetMinimum (const Duration &other)
 

Protected Field Index:

TDuration span
 The internal time value.
 

Type Definition Details:

◆ TDuration

template<typename TClock, typename TDerived>
using alib::time::TimePointBase< TClock, TDerived >::Duration::TDuration = sc steady_clock::duration

The value type for time spans.

Definition at line 90 of file timepointbase.inl.

Field Details:

◆ span

template<typename TClock, typename TDerived>
TDuration alib::time::TimePointBase< TClock, TDerived >::Duration::span
protected

The internal time value.

Definition at line 98 of file timepointbase.inl.

Constructor(s) / Destructor Details:

◆ Duration() [1/2]

template<typename TClock, typename TDerived>
alib::time::TimePointBase< TClock, TDerived >::Duration::Duration ( )
inlineconstexpr

Creates a zero-length time span.

Definition at line 109 of file timepointbase.inl.

◆ Duration() [2/2]

template<typename TClock, typename TDerived>
alib::time::TimePointBase< TClock, TDerived >::Duration::Duration ( const TDuration & stdLibValue)
inline

Constructs an instance from C++ library values.

See also
Methods Import/Export.
Parameters
stdLibValueThe value to copy into this.

Definition at line 116 of file timepointbase.inl.

Method Details:

◆ Export()

template<typename TClock, typename TDerived>
TDuration alib::time::TimePointBase< TClock, TDerived >::Duration::Export ( ) const
inline

Returns the internal time span value using the C++ standard library format.

Returns
The internal value.

Definition at line 134 of file timepointbase.inl.

◆ FromAbsoluteDays()

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::FromAbsoluteDays ( int64_t days)
inlinestatic

Sets the internal value to a time span provided in days.

Parameters
daysThe time span to set in days.
Returns
*this to allow concatenated calls.

Definition at line 551 of file timepointbase.inl.

Here is the call graph for this function:

◆ FromAbsoluteHours()

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::FromAbsoluteHours ( int64_t hours)
inlinestatic

Sets the internal value to a time span provided in hours.

Parameters
hoursThe time span to set in hours.
Returns
*this to allow concatenated calls.

Definition at line 569 of file timepointbase.inl.

Here is the call graph for this function:

◆ FromAbsoluteMicroseconds()

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::FromAbsoluteMicroseconds ( int64_t microseconds)
inlinestatic

Sets the internal value to a time span provided in microseconds.

Parameters
microsecondsThe time span to set in microseconds.
Returns
*this to allow concatenated calls.

Definition at line 641 of file timepointbase.inl.

Here is the call graph for this function:

◆ FromAbsoluteMilliseconds()

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::FromAbsoluteMilliseconds ( int64_t milliseconds)
inlinestatic

Sets the internal value to a time span provided in milliseconds.

Parameters
millisecondsThe time span to set in milliseconds.
Returns
*this to allow concatenated calls.

Definition at line 623 of file timepointbase.inl.

Here is the call graph for this function:

◆ FromAbsoluteMinutes()

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::FromAbsoluteMinutes ( int64_t minutes)
inlinestatic

Sets the internal value to a time span provided in hours.

Parameters
minutesThe time span to set in minutes.
Returns
*this to allow concatenated calls.

Definition at line 587 of file timepointbase.inl.

Here is the call graph for this function:

◆ FromAbsoluteSeconds()

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::FromAbsoluteSeconds ( int64_t seconds)
inlinestatic

Sets the internal value to a time span provided in seconds.

Parameters
secondsThe time span to set in seconds.
Returns
*this to allow concatenated calls.

Definition at line 605 of file timepointbase.inl.

Here is the call graph for this function:

◆ FromDays()

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::FromDays ( double days)
inlinestatic

Sets the internal value to a time span provided in days.

Parameters
daysThe time span to set in days.
Returns
*this to allow concatenated calls.

Definition at line 542 of file timepointbase.inl.

Here is the call graph for this function:

◆ FromHours()

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::FromHours ( double hours)
inlinestatic

Sets the internal value to a time span provided in hours.

Parameters
hoursThe time span to set in hours.
Returns
*this to allow concatenated calls.

Definition at line 560 of file timepointbase.inl.

Here is the call graph for this function:

◆ FromMicroseconds()

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::FromMicroseconds ( double microseconds)
inlinestatic

Sets the internal value to a time span provided in microseconds.

Parameters
microsecondsThe time span to set in microseconds.
Returns
*this to allow concatenated calls.

Definition at line 632 of file timepointbase.inl.

Here is the call graph for this function:

◆ FromMilliseconds()

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::FromMilliseconds ( double milliseconds)
inlinestatic

Sets the internal value to a time span provided in milliseconds.

Parameters
millisecondsThe time span to set in milliseconds.
Returns
*this to allow concatenated calls.

Definition at line 614 of file timepointbase.inl.

Here is the call graph for this function:

◆ FromMinutes()

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::FromMinutes ( double minutes)
inlinestatic

Sets the internal value to a time span provided in hours.

Parameters
minutesThe time span to set in minutes.
Returns
*this to allow concatenated calls.

Definition at line 578 of file timepointbase.inl.

Here is the call graph for this function:

◆ FromNanoseconds()

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::FromNanoseconds ( int64_t nanoseconds)
inlinestatic

Sets the internal value to a time span provided in nanoseconds.

Parameters
nanosecondsThe time span to set in nanoseconds.
Returns
*this to allow concatenated calls.

Definition at line 650 of file timepointbase.inl.

Here is the call graph for this function:

◆ FromSeconds()

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::FromSeconds ( double seconds)
inlinestatic

Sets the internal value to a time span provided in seconds.

Parameters
secondsThe time span to set in seconds.
Returns
*this to allow concatenated calls.

Definition at line 596 of file timepointbase.inl.

Here is the call graph for this function:

◆ Import()

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::Import ( const TDuration & timeSpan)
inlinestatic

Creates an instance representing the time span given in C++ standard library format.

Parameters
timeSpanThe C++ time point value.
Returns
A time span value representing the given externalized timeSpan.

Definition at line 142 of file timepointbase.inl.

Here is the call graph for this function:

◆ InAbsoluteDays()

template<typename TClock, typename TDerived>
integer alib::time::TimePointBase< TClock, TDerived >::Duration::InAbsoluteDays ( ) const
inline

Converts the internal value to absolute days.

Returns
The internal value converted to days.

Definition at line 399 of file timepointbase.inl.

◆ InAbsoluteHours()

template<typename TClock, typename TDerived>
integer alib::time::TimePointBase< TClock, TDerived >::Duration::InAbsoluteHours ( ) const
inline

Converts the internal value to absolute hours.

Returns
The internal value converted to hours.

Definition at line 419 of file timepointbase.inl.

◆ InAbsoluteMicroseconds()

template<typename TClock, typename TDerived>
int64_t alib::time::TimePointBase< TClock, TDerived >::Duration::InAbsoluteMicroseconds ( ) const
inline

Converts the internal value to absolute microseconds.

Returns
The internal value converted to microseconds.

Definition at line 495 of file timepointbase.inl.

◆ InAbsoluteMilliseconds()

template<typename TClock, typename TDerived>
int64_t alib::time::TimePointBase< TClock, TDerived >::Duration::InAbsoluteMilliseconds ( ) const
inline

Converts the internal value to absolute milliseconds.

Returns
The internal value converted to milliseconds.

Definition at line 476 of file timepointbase.inl.

◆ InAbsoluteMinutes()

template<typename TClock, typename TDerived>
int64_t alib::time::TimePointBase< TClock, TDerived >::Duration::InAbsoluteMinutes ( ) const
inline

Converts the internal value to absolute minutes.

Returns
The internal value converted to minutes.

Definition at line 438 of file timepointbase.inl.

◆ InAbsoluteSeconds()

template<typename TClock, typename TDerived>
int64_t alib::time::TimePointBase< TClock, TDerived >::Duration::InAbsoluteSeconds ( ) const
inline

Converts the internal value to absolute seconds.

Returns
The internal value converted to seconds.

Definition at line 457 of file timepointbase.inl.

◆ InDays()

template<typename TClock, typename TDerived>
double alib::time::TimePointBase< TClock, TDerived >::Duration::InDays ( ) const
inline

Converts the internal value to days.

Returns
The internal value converted to days.

Definition at line 389 of file timepointbase.inl.

◆ InHertz()

template<typename TClock, typename TDerived>
double alib::time::TimePointBase< TClock, TDerived >::Duration::InHertz ( int qtyFractionalDigits = -1) const
inline

Returns 1 divided by internal value in seconds, hence the number of Hertz that this object represents when interpreted as a time span.

Parameters
qtyFractionalDigitsNumber of digits that the return value will be rounded to. Defaults to -1 which means no rounding.
Returns
double value representing the frequency in hertz.

Definition at line 517 of file timepointbase.inl.

Here is the call graph for this function:

◆ InHours()

template<typename TClock, typename TDerived>
double alib::time::TimePointBase< TClock, TDerived >::Duration::InHours ( ) const
inline

Converts the internal value to hours.

Returns
The internal value converted to hours.

Definition at line 409 of file timepointbase.inl.

◆ InMicroseconds()

template<typename TClock, typename TDerived>
double alib::time::TimePointBase< TClock, TDerived >::Duration::InMicroseconds ( ) const
inline

Converts the internal value to microseconds.

Returns
The internal value converted to microseconds.

Definition at line 485 of file timepointbase.inl.

◆ InMilliseconds()

template<typename TClock, typename TDerived>
double alib::time::TimePointBase< TClock, TDerived >::Duration::InMilliseconds ( ) const
inline

Converts the internal value to milliseconds.

Returns
The internal value converted to milliseconds.

Definition at line 466 of file timepointbase.inl.

◆ InMinutes()

template<typename TClock, typename TDerived>
double alib::time::TimePointBase< TClock, TDerived >::Duration::InMinutes ( ) const
inline

Converts the internal value to minutes.

Returns
The internal value converted to minutes.

Definition at line 428 of file timepointbase.inl.

◆ InNanoseconds()

template<typename TClock, typename TDerived>
int64_t alib::time::TimePointBase< TClock, TDerived >::Duration::InNanoseconds ( ) const
inline

Converts the internal value to nanoseconds.

Returns
The internal value converted to nanoseconds.

Definition at line 504 of file timepointbase.inl.

◆ InSeconds()

template<typename TClock, typename TDerived>
double alib::time::TimePointBase< TClock, TDerived >::Duration::InSeconds ( ) const
inline

Converts the internal value to seconds.

Returns
The internal value converted to seconds.

Definition at line 447 of file timepointbase.inl.

◆ IsPositive()

template<typename TClock, typename TDerived>
bool alib::time::TimePointBase< TClock, TDerived >::Duration::IsPositive ( ) const
inline
Returns
true if this is a positive duration, false otherwise.

Definition at line 168 of file timepointbase.inl.

◆ IsZero()

template<typename TClock, typename TDerived>
bool alib::time::TimePointBase< TClock, TDerived >::Duration::IsZero ( ) const
inline
Returns
true if this is is a zero-length time-span, false otherwise.

Definition at line 171 of file timepointbase.inl.

◆ operator!=() [1/2]

template<typename TClock, typename TDerived>
bool alib::time::TimePointBase< TClock, TDerived >::Duration::operator!= ( const Duration & other) const
inline

Not equal to operator.

Parameters
otherThe duration to compare.
Returns
The result of the comparison.

Definition at line 193 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator!=() [2/2]

template<typename TClock, typename TDerived>
bool alib::time::TimePointBase< TClock, TDerived >::Duration::operator!= ( const TDuration & other) const
inline

Not equal to operator.

Parameters
otherThe duration to compare.
Returns
The result of the comparison.

Definition at line 200 of file timepointbase.inl.

◆ operator*() [1/2]

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::operator* ( double multiplier) const
inline

Multiply operator.

Parameters
multiplierThe multiplier.
Returns
A time span containing the sum.

Definition at line 319 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator*() [2/2]

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::operator* ( int64_t multiplier) const
inline

Multiply operator.

Parameters
multiplierThe multiplier.
Returns
A time span containing the sum.

Definition at line 327 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator*=() [1/2]

template<typename TClock, typename TDerived>
Duration & alib::time::TimePointBase< TClock, TDerived >::Duration::operator*= ( double multiplier)
inline

Assignment by product operator.

Parameters
multiplierThe multiplier.
Returns
A reference to this object.

Definition at line 335 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator*=() [2/2]

template<typename TClock, typename TDerived>
Duration & alib::time::TimePointBase< TClock, TDerived >::Duration::operator*= ( int64_t multiplier)
inline

Assignment by product operator.

Parameters
multiplierThe multiplier.
Returns
A reference to this object.

Definition at line 343 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator+() [1/2]

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::operator+ ( const Duration & rhs) const
inline

Addition operator.

Parameters
rhsThe right-hand side time span to add.
Returns
A time span containing the sum.

Definition at line 263 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator+() [2/2]

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::operator+ ( const TDuration & rhs) const
inline

Addition operator.

Parameters
rhsThe right-hand side time span to add.
Returns
A time span containing the sum.

Definition at line 270 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator+=() [1/2]

template<typename TClock, typename TDerived>
Duration & alib::time::TimePointBase< TClock, TDerived >::Duration::operator+= ( const Duration & other)
inline

Assignment by sum operator.

Parameters
otherThe time span to subtract.
Returns
A reference to this object.

Definition at line 277 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator+=() [2/2]

template<typename TClock, typename TDerived>
Duration & alib::time::TimePointBase< TClock, TDerived >::Duration::operator+= ( const TDuration & other)
inline

Assignment by sum operator.

Parameters
otherThe time span to subtract.
Returns
A reference to this object.

Definition at line 284 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator-() [1/2]

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::operator- ( const Duration & rhs) const
inline

Subtraction operator.

Parameters
rhsThe right-hand side time span to subtract.
Returns
A time span containing the sum.

Definition at line 291 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator-() [2/2]

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::operator- ( const TDuration & rhs) const
inline

Subtraction operator.

Parameters
rhsThe right-hand side time span to subtract.
Returns
A time span containing the sum.

Definition at line 298 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator-=() [1/2]

template<typename TClock, typename TDerived>
Duration & alib::time::TimePointBase< TClock, TDerived >::Duration::operator-= ( const Duration & other)
inline

Assignment by difference operator.

Parameters
otherThe time span subtract.
Returns
A reference to this object.

Definition at line 305 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator-=() [2/2]

template<typename TClock, typename TDerived>
Duration & alib::time::TimePointBase< TClock, TDerived >::Duration::operator-= ( const TDuration & other)
inline

Assignment by difference operator.

Parameters
otherThe time span subtract.
Returns
A reference to this object.

Definition at line 312 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator/() [1/2]

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::operator/ ( double divisor) const
inline

Divide operator.

Parameters
divisorThe divisor.
Returns
A time span containing the sum.

Definition at line 351 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator/() [2/2]

template<typename TClock, typename TDerived>
Duration alib::time::TimePointBase< TClock, TDerived >::Duration::operator/ ( int64_t divisor) const
inline

Divide operator.

Parameters
divisorThe divisor.
Returns
A time span object containing the sum.

Definition at line 359 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator/=() [1/2]

template<typename TClock, typename TDerived>
Duration & alib::time::TimePointBase< TClock, TDerived >::Duration::operator/= ( double divisor)
inline

Assignment by quotient operator.

Parameters
divisorThe divisor.
Returns
A reference to this object.

Definition at line 367 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator/=() [2/2]

template<typename TClock, typename TDerived>
Duration & alib::time::TimePointBase< TClock, TDerived >::Duration::operator/= ( int64_t divisor)
inline

Assignment by quotient operator.

Parameters
divisorThe divisor.
Returns
A reference to this object.

Definition at line 376 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator<() [1/2]

template<typename TClock, typename TDerived>
bool alib::time::TimePointBase< TClock, TDerived >::Duration::operator< ( const Duration & other) const
inline

Less than operator.

Parameters
otherThe duration to compare.
Returns
A reference to this object.

Definition at line 207 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator<() [2/2]

template<typename TClock, typename TDerived>
bool alib::time::TimePointBase< TClock, TDerived >::Duration::operator< ( const TDuration & other) const
inline

Less than operator.

Parameters
otherThe duration to compare.
Returns
A reference to this object.

Definition at line 214 of file timepointbase.inl.

◆ operator<=() [1/2]

template<typename TClock, typename TDerived>
bool alib::time::TimePointBase< TClock, TDerived >::Duration::operator<= ( const Duration & other) const
inline

Less than or equal to operator.

Parameters
otherThe duration to compare.
Returns
The result of the comparison.

Definition at line 221 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator<=() [2/2]

template<typename TClock, typename TDerived>
bool alib::time::TimePointBase< TClock, TDerived >::Duration::operator<= ( const TDuration & other) const
inline

Less than or equal to operator.

Parameters
otherThe duration to compare.
Returns
The result of the comparison.

Definition at line 228 of file timepointbase.inl.

◆ operator=()

template<typename TClock, typename TDerived>
Duration & alib::time::TimePointBase< TClock, TDerived >::Duration::operator= ( const TDuration & stdLibValue)
inline

Constructs an instance from C++ library values.

See also
Methods Import/Export.
Parameters
stdLibValueThe value to copy into this.
Returns
A reference to this object.

Definition at line 124 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator==() [1/2]

template<typename TClock, typename TDerived>
bool alib::time::TimePointBase< TClock, TDerived >::Duration::operator== ( const Duration & other) const
inline

Equal to operator.

Parameters
otherThe duration to compare.
Returns
The result of the comparison.

Definition at line 178 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator==() [2/2]

template<typename TClock, typename TDerived>
bool alib::time::TimePointBase< TClock, TDerived >::Duration::operator== ( const TDuration & other) const
inline

Equal to operator.

Parameters
otherThe duration to compare.
Returns
The result of the comparison.

Definition at line 186 of file timepointbase.inl.

◆ operator>() [1/2]

template<typename TClock, typename TDerived>
bool alib::time::TimePointBase< TClock, TDerived >::Duration::operator> ( const Duration & other) const
inline

Greater than operator.

Parameters
otherThe duration to compare.
Returns
The result of the comparison.

Definition at line 235 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator>() [2/2]

template<typename TClock, typename TDerived>
bool alib::time::TimePointBase< TClock, TDerived >::Duration::operator> ( const TDuration & other) const
inline

Greater than operator.

Parameters
otherThe duration to compare.
Returns
The result of the comparison.

Definition at line 242 of file timepointbase.inl.

◆ operator>=() [1/2]

template<typename TClock, typename TDerived>
bool alib::time::TimePointBase< TClock, TDerived >::Duration::operator>= ( const Duration & other) const
inline

Greater than or equal to operator.

Parameters
otherThe duration to compare.
Returns
The result of the comparison.

Definition at line 249 of file timepointbase.inl.

Here is the call graph for this function:

◆ operator>=() [2/2]

template<typename TClock, typename TDerived>
bool alib::time::TimePointBase< TClock, TDerived >::Duration::operator>= ( const TDuration & other) const
inline

Greater than or equal to operator.

Parameters
otherThe duration to compare.
Returns
The result of the comparison.

Definition at line 256 of file timepointbase.inl.

◆ SetMaximum()

template<typename TClock, typename TDerived>
Duration & alib::time::TimePointBase< TClock, TDerived >::Duration::SetMaximum ( const Duration & other)
inline

Sets this object's value to the given duration, in the case the given is longer.

Parameters
otherThe time stamp to compare.
Returns
A reference to this object.

Definition at line 161 of file timepointbase.inl.

Here is the call graph for this function:

◆ SetMinimum()

template<typename TClock, typename TDerived>
Duration & alib::time::TimePointBase< TClock, TDerived >::Duration::SetMinimum ( const Duration & other)
inline

Sets this object's value to the given duration, in the case the given is shorter.

Parameters
otherThe time stamp to compare.
Returns
A reference to this object.

Definition at line 150 of file timepointbase.inl.

Here is the call graph for this function:

The documentation for this class was generated from the following file: