Public Methods |
| ACE_Time_Value (void) |
| Default Constructor. More...
|
| ACE_Time_Value (long sec, long usec=0) |
| Constructor. More...
|
| ACE_Time_Value (const struct timeval &t) |
| Construct the ACE_Time_Value from a timeval. More...
|
| ACE_Time_Value (const timespec_t &t) |
| Construct the ACE_Time_Value object from a timespec_t. More...
|
| ACE_Time_Value (const FILETIME &ft) |
| Construct the ACE_Time_Value object from a Win32 FILETIME. More...
|
void | set (long sec, long usec) |
| Initializes the ACE_Time_Value from two longs. More...
|
void | set (double d) |
| Initializes the ACE_Time_Value from a double, which is assumed to be in second format, with any remainder treated as microseconds. More...
|
void | set (const timeval &t) |
| Initializes the ACE_Time_Value from a timeval. More...
|
void | set (const timespec_t &t) |
| Initializes the ACE_Time_Value object from a timespec_t. More...
|
void | set (const FILETIME &ft) |
| Initializes the ACE_Time_Value object from a Win32 FILETIME. More...
|
long | msec (void) const |
void | msec (long) |
| operator timespec_t () const |
| Returns the value of the object as a timespec_t. More...
|
| operator timeval () const |
| Returns the value of the object as a timeval. More...
|
| operator const timeval * () const |
| Returns a pointer to the object as a timeval. More...
|
| operator FILETIME () const |
| Returns the value of the object as a Win32 FILETIME. More...
|
long | sec (void) const |
void | sec (long sec) |
| Set seconds. More...
|
long | usec (void) const |
void | usec (long usec) |
| Set microseconds. More...
|
ACE_Time_Value & | operator+= (const ACE_Time_Value &tv) |
| Add tv to this. More...
|
ACE_Time_Value & | operator-= (const ACE_Time_Value &tv) |
| Subtract tv to this. More...
|
ACE_Time_Value & | operator *= (double d) |
| Multiply the time value by the d factor, which must be >= 0. More...
|
ACE_Time_Value | operator++ (int) |
ACE_Time_Value & | operator++ (void) |
ACE_Time_Value | operator-- (int) |
ACE_Time_Value & | operator-- (void) |
void | dump (void) const |
| The dump() method is a no-op. More...
|
Static Public Attributes |
const ACE_Time_Value | zero |
| Constant "0". More...
|
const ACE_Time_Value | max_time |
| Constant for maximum time representable. More...
|
const DWORDLONG | FILETIME_to_timval_skew |
| Const time difference between FILETIME and POSIX time. More...
|
Private Methods |
void | normalize (void) |
| Put the timevalue into a canonical form. More...
|
Private Attributes |
timeval | tv_ |
| Store the values as a timeval. More...
|
Friends |
ACE_OS_Export ACE_Time_Value | operator+ (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2) |
| Adds two ACE_Time_Value objects together, returns the sum. More...
|
ACE_OS_Export ACE_Time_Value | operator- (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2) |
| Subtracts two ACE_Time_Value objects, returns the difference. More...
|
ACE_OS_Export int | operator< (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2) |
| True if tv1 < tv2. More...
|
ACE_OS_Export int | operator> (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2) |
| True if tv1 > tv2. More...
|
ACE_OS_Export int | operator<= (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2) |
| True if tv1 <= tv2. More...
|
ACE_OS_Export int | operator>= (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2) |
| True if tv1 >= tv2. More...
|
ACE_OS_Export int | operator== (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2) |
| True if tv1 == tv2. More...
|
ACE_OS_Export int | operator!= (const ACE_Time_Value &tv1, const ACE_Time_Value &tv2) |
| True if tv1 != tv2. More...
|
|
ACE_OS_Export ACE_Time_Value | operator * (double d, const ACE_Time_Value &tv) |
| Multiplies the time value by d. More...
|
ACE_OS_Export ACE_Time_Value | operator * (const ACE_Time_Value &tv, double d) |
| Multiplies the time value by d. More...
|