API Documentation
|
Stores a time span, or difference between two times, with an optional start time. More...
#include <TimeSpan.h>
Public Member Functions | |
bool | contains (const Time &time) const |
sint08 | elapsedDays () const |
template<class t_type = fltp08> | |
constexpr t_type | elapsedMilliseconds () const |
constexpr fltp08 | elapsedMinutes () const |
sint08 | elapsedMonths () const |
constexpr sint08 | elapsedNanoseconds () const |
fltp08 | elapsedPercent (Time time, bool clip_time) const |
constexpr fltp08 | elapsedSeconds () const |
Time | endTime () const |
String | getTimeString (const String &format_string) const |
constexpr bool | operator!= (const TimeSpan &time) const |
constexpr TimeSpan | operator* (const fltp08 &mult) const |
constexpr TimeSpan | operator* (const sint08 &mult) const |
constexpr TimeSpan & | operator*= (const fltp08 &mult) |
constexpr TimeSpan & | operator*= (const sint08 &mult) |
constexpr TimeSpan | operator+ (const TimeSpan &other) const |
constexpr TimeSpan & | operator+= (const TimeSpan &other) |
constexpr TimeSpan | operator- () const |
constexpr TimeSpan | operator- (const TimeSpan &other) const |
constexpr TimeSpan & | operator-= (const TimeSpan &other) |
constexpr TimeSpan | operator/ (const fltp08 &den) const |
constexpr TimeSpan | operator/ (const sint08 &den) const |
constexpr fltp08 | operator/ (const TimeSpan &time_2) const |
constexpr bool | operator< (const TimeSpan &other) const |
constexpr bool | operator<= (const TimeSpan &other) const |
constexpr bool | operator== (const TimeSpan &time) const |
constexpr bool | operator> (const TimeSpan &other) const |
constexpr bool | operator>= (const TimeSpan &other) const |
constexpr void | setEndTime (Time time) |
constexpr void | setStartTime (Time time) |
constexpr Time | startTime () const |
constexpr | TimeSpan () |
constexpr | TimeSpan (const fltp08 elapsed_seconds) |
constexpr | TimeSpan (const sint08 elapsed_nano_seconds) |
constexpr | TimeSpan (const Time &start, const fltp08 &elapsed_seconds) |
constexpr | TimeSpan (const Time &start, const sint08 &elapsed_nano_seconds) |
TimeSpan (const Time &start, const Time &end) | |
constexpr | TimeSpan (const uint08 elapsed_nano_seconds) |
constexpr | TimeSpan (sint04 elapsed_nano_seconds) |
constexpr | TimeSpan (uint04 elapsed_nano_seconds) |
Protected Attributes | |
sint08 | m_elapsed_time |
Time | m_start_time |
Stores a time span, or difference between two times, with an optional start time.
Note: timespans can be negative to represent times in the past from an optional start time or positive to represent a time in the future from a given start time.
|
inlineconstexpr |
bool contains | ( | const Time & | time | ) | const |
sint08 elapsedDays | ( | ) | const |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
sint08 elapsedMonths | ( | ) | const |
|
inlinenodiscardconstexpr |
|
inlinenodiscardconstexpr |
|
nodiscard |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinenodiscardconstexpr |
|
protected |
|
protected |