Archon::Utilities::Time Struct Reference

Representation of time in nanosecond precision. More...

#include <archon/util/time.H>

Collaboration diagram for Archon::Utilities::Time:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Time ()
 Get the time that corresponds to Thu Jan 1 00:00:00 GMT 1970 which is assumed to be the beginning of the UNIX epoch.
 Time (long seconds, long nanoSeconds=0)
 Initialize by the number of seconds and nanoseconds since the epoch.
 Time (double seconds)
 Initialize by the number of seconds since the epoch.
Timeoperator+= (const Time &t)
Timeoperator-= (const Time &t)
Timeoperator++ ()
Timeoperator-- ()
Time operator++ (int)
Time operator-- (int)
Time operator+ (const Time &t) const
Time operator- (const Time &t) const
bool operator== (const Time &t) const
bool operator!= (const Time &t) const
bool operator< (const Time &t) const
bool operator> (const Time &t) const
bool operator<= (const Time &t) const
bool operator>= (const Time &t) const
void set (long seconds, long nanoSeconds=0)
 'nanoSeconds' represents the fractional part of the time mesured in seconds and must not be greater than 999999999.
void get (long &seconds, long &nanoSeconds) const
 'nanoSeconds' represents the fractional part of the time mesured in seconds and will never be greater than 999999999.
void get (long double &seconds) const
long getSeconds () const
void setSeconds (long v)
void addSeconds (long v)
long getMilliSeconds () const
void setMilliSeconds (long v)
void addMilliSeconds (long v)
long getMicroSeconds () const
void setMicroSeconds (long v)
void addMicroSeconds (long v)
long getNanoSeconds () const
void setNanoSeconds (long v)
void addNanoSeconds (long v)

Static Public Member Functions

static Time now ()
 Get the time that corresponds to "now".
static Time resolution ()
 Get the time resolution supported by the system (ie.

Detailed Description

Representation of time in nanosecond precision.

See also:
Thread::wait

Condition::timedWait

Definition at line 43 of file time.H.


Constructor & Destructor Documentation

Archon::Utilities::Time::Time long  seconds,
long  nanoSeconds = 0
[inline, explicit]
 

Initialize by the number of seconds and nanoseconds since the epoch.

'nanoSeconds' represents the fractional part of the time mesured in seconds and must not be greater than 999999999.

Definition at line 60 of file time.H.


Member Function Documentation

static Time Archon::Utilities::Time::resolution  )  [inline, static]
 

Get the time resolution supported by the system (ie.

the minimum nanosecond increment)

Definition at line 90 of file time.H.

References ts.


The documentation for this struct was generated from the following file:
Generated on Sun Jul 30 22:58:02 2006 for Archon by  doxygen 1.4.4