Static Public Member Functions | |
static TimeSpan | min () |
static TimeSpan | max () |
static TimeSpan | zero () |
static TimeSpan | parse (const std::string &) |
Protected Member Functions | |
void | normalize () |
Protected Attributes | |
TotalSeconds | seconds_ |
Picoseconds | picoseconds_ |
Friends | |
class | TimeManager |
Definition at line 93 of file TimeSpan.h.
TimeSpan | ( | ) |
Constructs an uninitialized instance.
TimeSpan | ( | TotalSeconds | seconds, |
Nanoseconds | nanoseconds ) |
Initializes the TimeSpan from seconds and nanoseconds.
TimeSpan | ( | TotalSeconds | seconds, |
Picoseconds | picoseconds ) |
Initializes the TimeSpan from seconds and picoseconds.
Initializes the TimeSpan from hours, minutes and seconds.
Initializes the TimeSpan from days, hours, minutes, seconds and nanoseconds.
Initializes the TimeSpan from days, hours, minutes, seconds and picoseconds.
TimeSpan absolute | ( | ) | const |
The current absolute time span.
Days days | ( | ) | const |
Current days.
Hours hours | ( | ) | const |
Current hours.
|
static |
The maximum value of the time span.
Microseconds microseconds | ( | ) | const |
Current microseconds.
Milliseconds milliseconds | ( | ) | const |
Current milliseconds.
|
static |
The minimum value of the time span.
Minutes minutes | ( | ) | const |
Current minutes.
Nanoseconds nanoseconds | ( | ) | const |
Current nanoseconds.
|
protected |
bool operator!= | ( | const TimeSpan & | ) | const |
Compares the instance with another one.
bool operator< | ( | const TimeSpan & | ) | const |
Tests whether the instance is less than another one.
bool operator== | ( | const TimeSpan & | ) | const |
Compares the instance with another one.
|
static |
Parses time span from its text presentation.
|
inline |
Current nanoseconds.
Definition at line 213 of file TimeSpan.h.
Seconds seconds | ( | ) | const |
Current seconds.
void toString | ( | std::string & | , |
TimeSpanFormat::Enum | = TimeSpanFormat::HHMMSSNsec ) const |
std::string toString | ( | TimeSpanFormat::Enum | = TimeSpanFormat::HHMMSSNsec | ) | const |
Returns the time span text presentation in the requested format ("HH:MM:SS.sssssssss" by default).
|
inline |
The total number of seconds.
Definition at line 206 of file TimeSpan.h.
|
static |
The zero value of the time span.
|
friend |
Definition at line 196 of file TimeSpan.h.
|
protected |
Definition at line 199 of file TimeSpan.h.
|
protected |
Definition at line 198 of file TimeSpan.h.