|
roo_time
API Documentation for roo_time
|
Represents absolute wall time since Unix epoch. More...
#include <roo_time.h>
Public Member Functions | |
| WallTime () | |
| Constructs epoch wall time. | |
| WallTime (Duration since_epoch) | |
| Constructs wall time from offset since Unix epoch. | |
| Duration | sinceEpoch () const |
| Returns elapsed duration since Unix epoch. | |
| WallTime & | operator+= (const Duration &i) |
| Adds duration to this wall time. | |
| WallTime & | operator-= (const Duration &i) |
| Subtracts duration from this wall time. | |
Friends | |
| WallTime | operator+ (const WallTime &, const Duration &) |
| Returns wall time shifted by duration. | |
| WallTime | operator- (const WallTime &, const Duration &) |
| Returns wall time shifted backwards by duration. | |
| WallTime | operator+ (const Duration &, const WallTime &) |
| Returns wall time shifted by duration. | |
Represents absolute wall time since Unix epoch.
Stored with microsecond precision and 64-bit range. Does not account for leap seconds.
Definition at line 581 of file roo_time.h.
|
inline |
Constructs epoch wall time.
Definition at line 584 of file roo_time.h.
|
inlineexplicit |
Constructs wall time from offset since Unix epoch.
Definition at line 587 of file roo_time.h.
Adds duration to this wall time.
Definition at line 593 of file roo_time.h.
Subtracts duration from this wall time.
Definition at line 599 of file roo_time.h.
|
inline |
Returns elapsed duration since Unix epoch.
Definition at line 590 of file roo_time.h.
Referenced by roo_time::DateTime::DateTime(), roo_time::operator!=(), roo_time::operator-(), roo_time::operator<(), roo_time::operator<=(), roo_time::operator==(), roo_time::operator>(), and roo_time::operator>=().
Returns wall time shifted by duration.
Definition at line 658 of file roo_time.h.
Returns wall time shifted by duration.
Definition at line 648 of file roo_time.h.
Returns wall time shifted backwards by duration.
Definition at line 653 of file roo_time.h.