Class Time
Defined in File Time.hpp
Class Documentation
-
class Time
Time represents a time value and can:
Be incremented by Duration expressed as seconds, nanoseconds, milliseconds, or Duration objects.
Be converted to and from Times expressed in milliseconds (or other units) as integer types.
Public Functions
-
int compare(const Time &that) const
Returns an integer indicating the result of a comparison of two Times: 1 if this Time is greater than the comparator (that) -1 if the Time is less than the comparator (that) 0 if the Time matches the comparator (that)
- Parameters
that – Time to compare
- Returns
comparison result
Public Static Functions
-
static const Time from_microsecs(int64_t microseconds)
Create a Time from a number of microseconds
- Parameters
microseconds – number of microseconds