#include <OpenMS/CONCEPT/TimeStamp.h>
Used to store a point of time.
Accessors | |
long | getSeconds () const throw () |
long | getMicroSeconds () const throw () |
static PreciseTime | now () throw () |
Public Member Functions | |
Constructors and Destructors. | |
PreciseTime () throw () | |
PreciseTime (const PreciseTime &time) throw () | |
PreciseTime (long secs, long usecs) throw () | |
virtual | ~PreciseTime () throw () |
Assignment | |
void | set (long secs, long usecs) throw () |
void | set (const PreciseTime &time) throw () |
const PreciseTime & | operator= (const PreciseTime &time) throw () |
virtual void | clear () throw () |
Predicates | |
bool | operator< (const PreciseTime &time) const throw () |
bool | operator> (const PreciseTime &time) const throw () |
bool | operator== (const PreciseTime &time) const throw () |
Static Public Attributes | |
Constants. | |
static const PreciseTime | ZERO |
Protected Attributes | |
long | secs_ |
long | usecs_ |
PreciseTime | ( | ) | throw () |
Default constructor. Initialize with zero.
PreciseTime | ( | const PreciseTime & | time | ) | throw () |
Copy constructor
PreciseTime | ( | long | secs, | |
long | usecs | |||
) | throw () [inline] |
Detailed constructor
~PreciseTime | ( | ) | throw () [inline, virtual] |
Destructor
void set | ( | long | secs, | |
long | usecs | |||
) | throw () [inline] |
Assignment method
void set | ( | const PreciseTime & | time | ) | throw () [inline] |
Assignment method
const PreciseTime & operator= | ( | const PreciseTime & | time | ) | throw () [inline] |
Assignment operator
void clear | ( | ) | throw () [inline, virtual] |
Clear method
bool operator< | ( | const PreciseTime & | time | ) | const throw () [inline] |
Greater than operator.
bool operator> | ( | const PreciseTime & | time | ) | const throw () [inline] |
Lesser than operator.
bool operator== | ( | const PreciseTime & | time | ) | const throw () [inline] |
Equality operator.
long getSeconds | ( | ) | const throw () [inline] |
Return the seconds since Jan. 1, 1970.
long getMicroSeconds | ( | ) | const throw () [inline] |
Return the microseconds.
static PreciseTime now | ( | ) | throw () [static] |
Return the current time.
const PreciseTime ZERO [static] |
Zero object.
long secs_ [protected] |
long usecs_ [protected] |
Generated Tue Apr 1 15:36:43 2008 -- using doxygen 1.5.4 | OpenMS / TOPP 1.1 |