#include <OnixS/CME/iLink3/messaging/Time.h>
Public Types | |
typedef Int64 | Ticks |
typedef Int32 | Days |
typedef Int32 | Hours |
typedef Int32 | Minutes |
typedef Int32 | Seconds |
typedef Int32 | Milliseconds |
typedef Int32 | Microseconds |
typedef Int32 | Nanoseconds |
Public Member Functions | |
std::string | toString (TimeSpanFormat::Enum=TimeSpanFormat::SDHHMMSSnsec) const |
TimeSpan (Ticks ticks=0) noexcept | |
TimeSpan (Days days, Hours hours, Minutes minutes, Seconds seconds, Nanoseconds nanoseconds) noexcept | |
TimeSpan (Hours hours, Minutes minutes, Seconds seconds, Nanoseconds nanoseconds) noexcept | |
Days | days () const noexcept |
Hours | hours () const noexcept |
Minutes | minutes () const noexcept |
Seconds | seconds () const noexcept |
Milliseconds | milliseconds () const noexcept |
Microseconds | microseconds () const noexcept |
Nanoseconds | nanoseconds () const noexcept |
Ticks | ticks () const noexcept |
TimeSpan & | operator+= (const TimeSpan &other) noexcept |
TimeSpan & | operator-= (const TimeSpan &other) noexcept |
void | swap (TimeSpan &other) noexcept |
Static Public Member Functions | |
static TimeSpan | fromStr (const std::string &) |
Used primarily to present time-only stamps and to time intervals between two timestamps.
typedef Int32 Microseconds |
typedef Int32 Milliseconds |
typedef Int32 Nanoseconds |
|
inlinenoexcept |
Initializes with the given set of values.
Input parameters are treated as quantities, but not as a time stamp. Therefore, there's no requirement to fit in a certain range like hours must fit into [0, 24) range. After initialization time span will be normalized.
|
inlinenoexcept |
Initializes with the given set of values.
Input parameters are treated as quantities, but not as a time stamp. Therefore, there's no requirement to fit in a certain range like hours must fit into [0, 24) range. After initialization time span will be normalized.
|
inlinenoexcept |
|
inlinestatic |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |