static const TimeDelta ps
TimeDelta of 1 ps.
float short_time_t
Type for relative hit times within a SubSample. Unit = ns.
double operator/(const TimeDelta &left_delta, const TimeDelta &right_delta)
static constexpr double s_long_time_unit
Relative unit of long time member, i.e. long_unit / short_unit, both ns so = 1.
bool operator>(const TimeDelta &left_delta, const TimeDelta &right_delta)
bool operator>=(const TimeDelta &left_delta, const TimeDelta &right_delta)
void Normalize()
Ensure that the time difference stored in m_short_time is small and positive.
static const TimeDelta ms
TimeDelta of 1 ms.
static const TimeDelta us
TimeDelta of 1 us.
TimeDelta operator-(const TimeDelta &left_delta, const TimeDelta &right_delta)
bool operator==(const TimeDelta &left_delta, const TimeDelta &right_delta)
long_time_t m_long_time
Member for long time delta.
bool operator<(const TimeDelta &left_delta, const TimeDelta &right_delta)
bool operator<=(const TimeDelta &left_delta, const TimeDelta &right_delta)
static const TimeDelta ns
TimeDelta of 1 ns.
int64_t long_time_t
Type for absolute timestamps of a SubSample. Unit = ns.
TimeDelta()
Default constructor (sets all times to 0)
TimeDelta operator+(const TimeDelta &left_delta, const TimeDelta &right_delta)
TimeDelta & operator-=(TimeDelta &left_delta, const TimeDelta &right_delta)
std::ostream & operator<<(std::ostream &outs, const TimeDelta &delta)
bool operator!=(const TimeDelta &left_delta, const TimeDelta &right_delta)
TimeDelta & operator+=(TimeDelta &left_delta, const TimeDelta &right_delta)
short_time_t m_short_time
Member for short time deltas.
static const TimeDelta s
TimeDelta of 1 s.
TimeDelta operator*(const TimeDelta &old_delta, double factor)