#include <ariaUtil.h>
Public Member Functions | |
void | addMSec (long ms) |
Add some milliseconds (can be negative) to this time. | |
ArTime () | |
Constructor. | |
time_t | getMSec (void) const |
Gets the milliseconds. | |
time_t | getSec (void) const |
Gets the seconds since 1970. | |
bool | isAfter (ArTime testTime) const |
returns whether the given time is after this one or not | |
bool | isAt (ArTime testTime) const |
returns whether the given time is equal to this time or not | |
bool | isBefore (ArTime testTime) const |
returns whether the given time is before this one or not | |
void | log (void) const |
Logs the time. | |
long | mSecSince (void) const |
Finds the number of milliseconds from this timestamp to now. | |
long | mSecSince (ArTime since) const |
Gets the number of milliseconds since the given timestamp to this one. | |
long | mSecTo (void) const |
Finds the number of millisecs from when this timestamp is set to to now. | |
long | secSince (void) const |
Finds the number of seconds from when this timestamp was set to now. | |
long | secSince (ArTime since) const |
Gets the number of seconds since the given timestamp to this one. | |
long | secTo (void) const |
Finds the number of seconds from when this timestamp is set to to now. | |
void | setMSec (time_t msec) |
Sets the milliseconds. | |
void | setSec (time_t sec) |
Sets the seconds since 1970. | |
void | setToNow (void) |
Sets the time to now. | |
~ArTime () | |
Destructor. | |
Protected Attributes | |
time_t | myMSec |
time_t | mySec |
This class is for getting the time of certain events. This class is not for generic time stuff, just for timeStamping, hence the only commands are very simple and the accessors for getting the data directly shouldn't really be used. DON'T use this for keeping track of what time it is, its just for relative timing (ie this loop needs to sleep another 100 ms);
Definition at line 584 of file ariaUtil.h.