Miscellaneous time traits. More...
Public Member Functions | |
HighResolutionTime () | |
Initializes as not valid. | |
HighResolutionTime (UInt64) | |
Initializes from given number of milliseconds since Jan 1st, 1970, 00:00:00 GMT. | |
HighResolutionTime (const HighResolutionTimeFields &) | |
Initializes from the given set of time attributes. | |
HighResolutionTime (const HighResolutionTime &) | |
Initializes from the other instance. | |
bool | isValid () const |
Indicates whether the instance is valid time. | |
void | getFields (HighResolutionTimeFields *fields) const |
Extracts details like year, month, seconds, etc. | |
std::string | toString () const |
Returns canonical presentation of time. | |
void | setToNow () |
Updates to current time. | |
bool | operator== (const HighResolutionTime &) const |
Compares two timestamps for equality. | |
bool | operator!= (const HighResolutionTime &) const |
Compares two timestamps for inequality. | |
HighResolutionTimeSpan | operator- (const HighResolutionTime &) const |
Returns difference between two times in microseconds. | |
HighResolutionTime & | operator= (const HighResolutionTime &) |
Reinitializes from the other instance. | |
Static Public Member Functions | |
static HighResolutionTime | now () |
Returns current time. | |
static HighResolutionTime | parse (const std::string &time) |
Returns time from its string presentation. | |
Friends | |
struct | TimestampHelpers |
Miscellaneous time traits.