1 #ifndef _utl_TimeInterval_h_
2 #define _utl_TimeInterval_h_
72 operator double()
const
TimeInterval(const TimeInterval &ti)
TimeInterval operator+=(const TimeInterval &ti)
[TimeInterval] += [TimeInterval] = [TimeInterval]
friend std::ostream & operator<<(std::ostream &os, const TimeInterval &ti)
stream output
bool operator<(const TimeInterval &ti) const
long GetSecond() const
Get the seconds floor for the interval.
friend TimeInterval operator*(const double &d, const TimeInterval &ti)
[double] * [TimeInterval] = [TimeInterval]
static TimeInterval Min()
bool operator>=(const TimeInterval &ti) const
TimeInterval operator-() const
unary sign reversal
TimeInterval & operator-=(const TimeInterval &ti)
[TimeInterval] -= [TimeInterval] = [TimeInterval]
double operator/(const TimeInterval &ti) const
[TimeInterval] / [TimeInterval] = [double]
TimeInterval(const double interval=0)
TimeInterval & operator/=(const double &d)
[TimeInterval] /= [double] = [TimeInterval]
TimeInterval operator*(const double &d) const
[TimeInterval] * [double] = [TimeInterval]
TimeInterval & operator=(const TimeInterval &ti)
double GetInterval() const
Get the time interval as a double (in Auger base units)
TimeInterval & operator*=(const double &d)
[TimeInterval] *= [TimeInterval] = [TimeInterval]
TimeInterval operator/(const double &d) const
[TimeInterval] / [double] = [TimeInterval]
bool operator!=(const TimeInterval &ti) const
A TimeInterval is used to represent time elapsed between two events.
bool operator==(const TimeInterval &ti) const
bool operator<=(const TimeInterval &ti) const
TimeInterval & operator=(const double &d)
[TimeInterval] = double
bool operator>(const TimeInterval &ti) const
TimeInterval operator-(const TimeInterval &ti) const
[TimeInterval] - [TimeInterval] = [TimeInterval]
double GetNanoSecond() const
Get integer number of nanoseconds past seconds boundary.
TimeInterval operator+(const TimeInterval &ti) const
[TimeInterval] + [TimeInterval] = [TimeInterval]
static TimeInterval Max()