Public Methods |
long long | to_secs () const |
| Returns the duration in seconds. More...
|
long long | to_msecs () const |
| Returns the duration in milliseconds. More...
|
long long | to_usecs () const |
| Returns the duration in microseconds. More...
|
timespec | to_timespec () const |
| Returns the duration as a timespec. More...
|
timeval | to_timeval () const |
| Returns the duration as a timeval. More...
|
| operator bool () const |
| Returns true unless the time is equal to the special ntime::now() value. More...
|
ntime | operator+ (ntime other) const |
ntime | operator- (ntime other) const |
ntime & | operator+= (ntime other) |
ntime & | operator-= (ntime other) |
bool | operator== (ntime other) const |
bool | operator!= (ntime other) const |
bool | operator< (ntime other) const |
bool | operator> (ntime other) const |
bool | operator<= (ntime other) const |
bool | operator>= (ntime other) const |
Static Public Methods |
ntime | now () |
| Returns the current time. More...
|
template<class T> ntime | secs (T val) |
| Creates a time value corresponding to a particular number of seconds. More...
|
ntime | secs (double val) |
| Creates a time value corresponding to a particular number of seconds. More...
|
template<class T> ntime | msecs (T val) |
| Creates a time value corresponding to a particular number of milliseconds. More...
|
ntime | msecs (double val) |
| Creates a time value corresponding to a particular number of milliseconds. More...
|
template<class T> ntime | usecs (T val) |
| Creates a time value corresponding to a particular number of microseconds. More...
|
ntime | usecs (double val) |
| Creates a time value corresponding to a particular number of microseconds. More...
|
ntime | none () |
| Returns a special time value meaning "no time at all.". More...
|
This class is named ntime rather than time to avoid collisions with the time function.