#include <timeStamp.h>
Accessors | |
long | getSeconds () const throw () |
Return the seconds since Jan. | |
long | getMicroSeconds () const throw () |
Return the microseconds. | |
PreciseTime | now () throw () |
Return the current time. | |
Public Member Functions | |
Constructors and Destructors. | |
PreciseTime () throw () | |
Default constructor. | |
PreciseTime (const PreciseTime &time) throw () | |
Copy constructor. | |
PreciseTime (long secs, long usecs) throw () | |
Detailed constructor. | |
virtual | ~PreciseTime () throw () |
Destructor. | |
Assignment | |
void | set (long secs, long usecs) throw () |
Assignment method. | |
void | set (const PreciseTime &time) throw () |
Assignment method. | |
const PreciseTime & | operator= (const PreciseTime &time) throw () |
Assignment operator. | |
virtual void | clear () throw () |
Clear method. | |
Predicates | |
bool | operator< (const PreciseTime &time) const throw () |
Greater than operator. | |
bool | operator> (const PreciseTime &time) const throw () |
Lesser than operator. | |
bool | operator== (const PreciseTime &time) const throw () |
Equality operator. | |
Storable interface. | |
void | write (PersistenceManager &pm) const throw () |
Persistent stream writing. | |
bool | read (PersistenceManager &pm) throw () |
Persistent stream reading. | |
Static Public Attributes | |
Constants. | |
const PreciseTime | ZERO |
Zero object. | |
Protected Attributes | |
long | secs_ |
long | usecs_ |
Used to store a point of time. This class provides a higher precision than Time (below seconds).
Storable
|
Default constructor. Initialize with zero. |
|
Return the microseconds.
|
|
Return the seconds since Jan. 1, 1970. |
|
Return the current time.
|
|
Greater than operator.
|
|
Equality operator.
|
|
Lesser than operator.
|
|
Persistent stream reading.
This method reads the contents of a PreciseTime object from the persistent stream using the
|
|
Persistent stream writing.
This method writes the contents of the PreciseTime objects to the persistent stream using the
|
|
Zero object.
|