class Time GPS time container class.
| | Time (void) Default constructor |
| | Time (ulong_t sec, ulong_t nsec=0) Constructor from seconds and nanoseconds. |
| | Time (const Time& t) Copy constructor |
| | operator= (const Time&) Assignment operator |
| | operator+= (const Interval& dt) Add an Interval to a Time. |
| | operator - (const Time& dt) const Subtract a Time rhs. |
| | operator-= (const Interval& dt) Subtract a constant rhs |
| | operator! (void) const Compare to zero |
| | operator== (const Time& rhs) const Compare times (equality) |
| | operator!= (const Time& rhs) const Compare times (inequality) |
| | operator>= (const Time& rhs) const Compare times (Greater or Equal) |
| | operator<= (const Time& rhs) const Compare times (Less or equal) |
| | operator> (const Time& rhs) const Compare times (Greater) |
| | operator< (const Time& rhs) const Compare times (Less than) |
| | getS (void) const Number of nanoseconds. |
| | getN (void) const Number of nanoseconds. |
| | totalS (void) const GPS seconds since t0. |
| | totalNS (void) const GPS nanoseconds since t0. |
| | fracS (void) const Get the fractional seconds. |
| | setS (ulong_t s) set seconds field. |
| | setN (ulong_t n) Set nanosecon field. |
The time class contains a GPS time in seconds and nanoseconds since midnight, January 6, 1980. The Time class is closely coupled with the Interval class which represents time intervals. All basic arithmetic operations are defined between the two classes. Ancillary (non-member) functions convert the GPS time to other representations
explicit Time(ulong_t sec, ulong_t nsec=0)
nsec - Number of nanoseconds since last GPS second.
Time(const Time& t)
Time& operator=(const Time&)
Time& operator+=(const Interval& dt)
Interval operator -(const Time& dt) const
Time& operator-=(const Interval& dt)
bool operator!(void) const
bool operator==(const Time& rhs) const
bool operator!=(const Time& rhs) const
bool operator>=(const Time& rhs) const
bool operator<=(const Time& rhs) const
bool operator>(const Time& rhs) const
bool operator<(const Time& rhs) const
ulong_t getS(void) const
ulong_t getN(void) const
double totalS(void) const
double totalNS(void) const
double fracS(void) const
void setS(ulong_t s)
void setN(ulong_t n)
alphabetic index hierarchy of classes
Please send questions and comments to zweizig_j@ligo.caltech.edu
generated by doc++