#include <Time.h>
Public Member Functions | |
| COMMON_EXPORT | timeLength () |
| COMMON_EXPORT | timeLength (int64_t iTime, const timeUnit &u) |
| COMMON_EXPORT | timeLength (int iTime, const timeUnit &u) |
| COMMON_EXPORT | timeLength (double dTime, const timeUnit &u) |
| COMMON_EXPORT double | getD (const timeUnit &u) const |
| COMMON_EXPORT int64_t | getI (const timeUnit &u) const |
| COMMON_EXPORT int64_t | get_ns () const |
| COMMON_EXPORT bool | isInitialized () const |
Static Public Member Functions | |
| static COMMON_EXPORT const timeLength & | Zero () |
| static COMMON_EXPORT const timeLength & | ns () |
| static COMMON_EXPORT const timeLength & | us () |
| static COMMON_EXPORT const timeLength & | ms () |
| static COMMON_EXPORT const timeLength & | sec () |
| static COMMON_EXPORT const timeLength & | minute () |
| static COMMON_EXPORT const timeLength & | hour () |
| static COMMON_EXPORT const timeLength & | day () |
| static COMMON_EXPORT const timeLength & | year () |
| static COMMON_EXPORT const timeLength & | leapYear () |
Protected Member Functions | |
| COMMON_EXPORT void | assign (const int64_t v) |
| COMMON_EXPORT int64_t | getRolloverTime (double t) |
Private Member Functions | |
| COMMON_EXPORT void | initI (int64_t iTime, const timeUnit &u) |
| COMMON_EXPORT | timeLength (int64_t ns_) |
Static Private Member Functions | |
| static COMMON_EXPORT const timeLength * | ZeroHelp () |
| static COMMON_EXPORT const timeLength * | nsHelp () |
| static COMMON_EXPORT const timeLength * | usHelp () |
| static COMMON_EXPORT const timeLength * | msHelp () |
| static COMMON_EXPORT const timeLength * | secHelp () |
| static COMMON_EXPORT const timeLength * | minHelp () |
| static COMMON_EXPORT const timeLength * | hourHelp () |
| static COMMON_EXPORT const timeLength * | dayHelp () |
| static COMMON_EXPORT const timeLength * | yearHelp () |
| static COMMON_EXPORT const timeLength * | leapYearHelp () |
Static Private Attributes | |
| static COMMON_EXPORT const timeLength * | _zero = NULL |
| static COMMON_EXPORT const timeLength * | _ns = NULL |
| static COMMON_EXPORT const timeLength * | _us = NULL |
| static COMMON_EXPORT const timeLength * | _ms = NULL |
| static COMMON_EXPORT const timeLength * | _sec = NULL |
| static COMMON_EXPORT const timeLength * | _minute = NULL |
| static COMMON_EXPORT const timeLength * | _hour = NULL |
| static COMMON_EXPORT const timeLength * | _day = NULL |
| static COMMON_EXPORT const timeLength * | _year = NULL |
| static COMMON_EXPORT const timeLength * | _leapYear = NULL |
Friends | |
| COMMON_EXPORT const timeLength | operator+= (timeLength &t, timeLength tl) |
| COMMON_EXPORT const timeLength | operator-= (timeLength &t, timeLength tl) |
| COMMON_EXPORT const timeLength | operator*= (timeLength &t, double d) |
| COMMON_EXPORT const timeLength | operator/= (timeLength &t, double d) |
| COMMON_EXPORT const timeLength | operator- (const timeLength &t) |
| COMMON_EXPORT const timeLength | operator- (const timeStamp &a, const timeStamp &b) |
| COMMON_EXPORT const timeLength | operator- (const relTimeStamp &a, const relTimeStamp &b) |
| COMMON_EXPORT const timeStamp | operator+ (const timeStamp &a, const timeLength &b) |
| COMMON_EXPORT const timeStamp | operator- (const timeStamp &a, const timeLength &b) |
| COMMON_EXPORT const timeStamp | operator+ (const timeLength &a, const timeStamp &b) |
| COMMON_EXPORT const timeLength | operator+ (const timeLength &a, const timeLength &b) |
| COMMON_EXPORT const timeLength | operator- (const timeLength &a, const timeLength &b) |
| COMMON_EXPORT const timeLength | operator* (const timeLength &a, double b) |
| COMMON_EXPORT const timeLength | operator/ (const timeLength &a, double b) |
| COMMON_EXPORT const timeLength | operator* (double a, const timeLength &b) |
| COMMON_EXPORT const timeLength | operator/ (double a, const timeLength &b) |
| COMMON_EXPORT double | operator/ (const timeLength &a, const timeLength &b) |
Definition at line 316 of file Time.h.
| COMMON_EXPORT timeLength::timeLength | ( | ) |
Definition at line 949 of file Time.C.
Referenced by dayHelp(), hourHelp(), leapYearHelp(), minHelp(), msHelp(), nsHelp(), secHelp(), usHelp(), yearHelp(), and ZeroHelp().
| COMMON_EXPORT timeLength::timeLength | ( | int | iTime, | |
| const timeUnit & | u | |||
| ) |
| timeLength::timeLength | ( | double | dTime, | |
| const timeUnit & | u | |||
| ) |
Definition at line 288 of file Time.C.
References timeParent::assign(), timeUnit::cvtTo_ns(), timeParent::getRolloverTime(), and I64_MAX.
| void timeParent::assign | ( | const int64_t | v | ) | [protected, inherited] |
Definition at line 889 of file Time.C.
References timeParent::ns.
Referenced by relTimeStamp::initI(), initI(), timeStamp::initI(), operator*=(), operator+=(), operator-=(), operator/=(), relTimeStamp::relTimeStamp(), timeLength(), and timeStamp::timeStamp().
| const timeLength & timeLength::day | ( | ) | [static] |
| const timeLength * timeLength::dayHelp | ( | ) | [static, private] |
Definition at line 275 of file Time.C.
References timeUnit::day(), and timeLength().
Referenced by day().
| int64_t timeParent::get_ns | ( | ) | const [inherited] |
Definition at line 885 of file Time.C.
References timeParent::ns.
Referenced by getD(), relTimeStamp::getD(), timeStamp::getD(), getI(), relTimeStamp::getI(), timeStamp::getI(), timeParent::isInitialized(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), operator<<(), operator<=(), operator==(), operator>(), operator>=(), and timeBase::timeBase().
| double timeLength::getD | ( | const timeUnit & | u | ) | const |
Definition at line 953 of file Time.C.
References timeUnit::cvtFrom_nsD(), and timeParent::get_ns().
Definition at line 958 of file Time.C.
References timeUnit::cvtFrom_nsI(), and timeParent::get_ns().
Referenced by operator<<(), relTimeStamp::relTimeStamp(), and timeStamp::timeStamp().
| int64_t timeParent::getRolloverTime | ( | double | t | ) | [protected, inherited] |
Definition at line 134 of file Time.C.
References I64_MAX.
Referenced by relTimeStamp::relTimeStamp(), timeLength(), and timeStamp::timeStamp().
| const timeLength & timeLength::hour | ( | ) | [static] |
Definition at line 514 of file Time.C.
References _hour, and hourHelp().
| const timeLength * timeLength::hourHelp | ( | ) | [static, private] |
Definition at line 271 of file Time.C.
References timeUnit::hour(), and timeLength().
Referenced by hour().
Definition at line 191 of file Time.C.
References timeParent::assign(), and timeUnit::cvtTo_ns().
Referenced by timeLength().
| bool timeParent::isInitialized | ( | ) | const [inherited] |
Definition at line 438 of file Time.C.
References timeParent::get_ns(), and timeParent::uninitializedValue.
Referenced by abs(), earlier(), later(), maximum(), minimum(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), operator<<(), operator<=(), operator==(), operator>(), and operator>=().
| const timeLength & timeLength::leapYear | ( | ) | [static] |
Definition at line 526 of file Time.C.
References _leapYear, and leapYearHelp().
Referenced by timeStamp::ts1800Help(), and timeStamp::ts2200Help().
| const timeLength * timeLength::leapYearHelp | ( | ) | [static, private] |
Definition at line 283 of file Time.C.
References timeUnit::leapYear(), and timeLength().
Referenced by leapYear().
| const timeLength * timeLength::minHelp | ( | ) | [static, private] |
Definition at line 267 of file Time.C.
References timeUnit::minute(), and timeLength().
Referenced by minute().
| const timeLength & timeLength::minute | ( | ) | [static] |
| const timeLength & timeLength::ms | ( | ) | [static] |
| const timeLength * timeLength::msHelp | ( | ) | [static, private] |
Definition at line 259 of file Time.C.
References timeUnit::ms(), and timeLength().
Referenced by ms().
| const timeLength & timeLength::ns | ( | ) | [static] |
| const timeLength * timeLength::nsHelp | ( | ) | [static, private] |
Definition at line 251 of file Time.C.
References timeUnit::ns(), and timeLength().
Referenced by ns().
| const timeLength & timeLength::sec | ( | ) | [static] |
| const timeLength * timeLength::secHelp | ( | ) | [static, private] |
Definition at line 263 of file Time.C.
References timeUnit::sec(), and timeLength().
Referenced by sec().
| const timeLength & timeLength::us | ( | ) | [static] |
| const timeLength * timeLength::usHelp | ( | ) | [static, private] |
Definition at line 255 of file Time.C.
References timeLength(), and timeUnit::us().
Referenced by us().
| const timeLength & timeLength::year | ( | ) | [static] |
Definition at line 522 of file Time.C.
References _year, and yearHelp().
Referenced by timeStamp::ts1800Help(), and timeStamp::ts2200Help().
| const timeLength * timeLength::yearHelp | ( | ) | [static, private] |
Definition at line 279 of file Time.C.
References timeLength(), and timeUnit::year().
Referenced by year().
| const timeLength & timeLength::Zero | ( | ) | [static] |
Definition at line 490 of file Time.C.
References _zero, and ZeroHelp().
| const timeLength * timeLength::ZeroHelp | ( | ) | [static, private] |
Definition at line 233 of file Time.C.
References timeUnit::sec(), and timeLength().
Referenced by Zero().
| COMMON_EXPORT const timeLength operator* | ( | double | a, | |
| const timeLength & | b | |||
| ) | [friend] |
| COMMON_EXPORT const timeLength operator* | ( | const timeLength & | a, | |
| double | b | |||
| ) | [friend] |
| COMMON_EXPORT const timeLength operator*= | ( | timeLength & | t, | |
| double | d | |||
| ) | [friend] |
| COMMON_EXPORT const timeLength operator+ | ( | const timeLength & | a, | |
| const timeLength & | b | |||
| ) | [friend] |
| COMMON_EXPORT const timeStamp operator+ | ( | const timeLength & | a, | |
| const timeStamp & | b | |||
| ) | [friend] |
| COMMON_EXPORT const timeStamp operator+ | ( | const timeStamp & | a, | |
| const timeLength & | b | |||
| ) | [friend] |
| COMMON_EXPORT const timeLength operator+= | ( | timeLength & | t, | |
| timeLength | tl | |||
| ) | [friend] |
| COMMON_EXPORT const timeLength operator- | ( | const timeLength & | a, | |
| const timeLength & | b | |||
| ) | [friend] |
| COMMON_EXPORT const timeStamp operator- | ( | const timeStamp & | a, | |
| const timeLength & | b | |||
| ) | [friend] |
| COMMON_EXPORT const timeLength operator- | ( | const relTimeStamp & | a, | |
| const relTimeStamp & | b | |||
| ) | [friend] |
| COMMON_EXPORT const timeLength operator- | ( | const timeStamp & | a, | |
| const timeStamp & | b | |||
| ) | [friend] |
| COMMON_EXPORT const timeLength operator- | ( | const timeLength & | t | ) | [friend] |
| COMMON_EXPORT const timeLength operator-= | ( | timeLength & | t, | |
| timeLength | tl | |||
| ) | [friend] |
| COMMON_EXPORT double operator/ | ( | const timeLength & | a, | |
| const timeLength & | b | |||
| ) | [friend] |
| COMMON_EXPORT const timeLength operator/ | ( | double | a, | |
| const timeLength & | b | |||
| ) | [friend] |
| COMMON_EXPORT const timeLength operator/ | ( | const timeLength & | a, | |
| double | b | |||
| ) | [friend] |
| COMMON_EXPORT const timeLength operator/= | ( | timeLength & | t, | |
| double | d | |||
| ) | [friend] |
const timeLength * timeLength::_day = NULL [static, private] |
const timeLength * timeLength::_hour = NULL [static, private] |
const timeLength * timeLength::_leapYear = NULL [static, private] |
Definition at line 328 of file Time.h.
Referenced by leapYear().
const timeLength * timeLength::_minute = NULL [static, private] |
const timeLength * timeLength::_ms = NULL [static, private] |
const timeLength * timeLength::_ns = NULL [static, private] |
const timeLength * timeLength::_sec = NULL [static, private] |
const timeLength * timeLength::_us = NULL [static, private] |
const timeLength * timeLength::_year = NULL [static, private] |
const timeLength * timeLength::_zero = NULL [static, private] |
1.6.1