#include <GaudiKernel/Time.h>
Collaboration diagram for Gaudi::TimeSpan:
Public Types | |
typedef longlong | ValueType |
Public Member Functions | |
TimeSpan (void) | |
TimeSpan (Time t) | |
TimeSpan (ValueType nsecs) | |
TimeSpan (ValueType secs, int nsecs) | |
TimeSpan (int days, int hours, int mins, int secs, int nsecs) | |
int | days (void) const |
int | hours (void) const |
int | minutes (void) const |
ValueType | seconds (void) const |
int | lastHours (void) const |
int | lastMinutes (void) const |
int | lastSeconds (void) const |
int | lastNSeconds (void) const |
TimeSpan & | operator+= (const TimeSpan &x) |
TimeSpan & | operator-= (const TimeSpan &x) |
TimeSpan & | operator *= (const TimeSpan &n) |
TimeSpan & | operator/= (const TimeSpan &n) |
TimeSpan & | operator%= (const TimeSpan &n) |
ValueType | ns (void) const |
Private Attributes | |
ValueType | m_nsecs |
Friends | |
class | Time |
A difference between two Time values. In addition to supporting normal integer artihmetic and comparisons, the span can also be converted to a number useful units.
Definition at line 59 of file Time.h.
Gaudi::TimeSpan::TimeSpan | ( | void | ) |
Gaudi::TimeSpan::TimeSpan | ( | Time | t | ) |
Gaudi::TimeSpan::TimeSpan | ( | ValueType | nsecs | ) |
Gaudi::TimeSpan::TimeSpan | ( | ValueType | secs, | |
int | nsecs | |||
) |
Gaudi::TimeSpan::TimeSpan | ( | int | days, | |
int | hours, | |||
int | mins, | |||
int | secs, | |||
int | nsecs | |||
) |
int Gaudi::TimeSpan::days | ( | void | ) | const |
int Gaudi::TimeSpan::hours | ( | void | ) | const |
int Gaudi::TimeSpan::minutes | ( | void | ) | const |
ValueType Gaudi::TimeSpan::seconds | ( | void | ) | const |
int Gaudi::TimeSpan::lastHours | ( | void | ) | const |
int Gaudi::TimeSpan::lastMinutes | ( | void | ) | const |
int Gaudi::TimeSpan::lastSeconds | ( | void | ) | const |
int Gaudi::TimeSpan::lastNSeconds | ( | void | ) | const |
ValueType Gaudi::TimeSpan::ns | ( | void | ) | const |