#include <ace/Time_Value.h> class ACE_Time_Value {
public:
static const ACE_Time_Value zero;
ACE_Time_Value (long sec = 0, long usec = 0);
ACE_Time_Value (const timeval &t);
ACE_Time_Value (const timestruc_t &t);
ACE_Time_Value (const ACE_Time_Value &tv);
ACE_Time_Value (const FILETIME &ft);
void set (long sec = 0, long usec = 0);
void set (const timeval &t);
void set (const timestruc_t &t);
void set (const FILETIME &ft);
long msec (void) const;
void msec (long);
operator timestruc_t () const;
operator timeval () const;
operator FILETIME () const;
long sec (void) const;
void sec (long sec);
long usec (void) const;
void usec (long usec);
void operator += (const ACE_Time_Value &tv);
void operator -= (const ACE_Time_Value &tv);
friend ACE_Export ACE_Time_Value operator + ( const ACE_Time_Value &tv1, const ACE_Time_Value &tv2 );
friend ACE_Export ACE_Time_Value operator - ( const ACE_Time_Value &tv1, const ACE_Time_Value &tv2 );
friend ACE_Export int operator < ( const ACE_Time_Value &tv1, const ACE_Time_Value &tv2 );
friend ACE_Export int operator > ( const ACE_Time_Value &tv1, const ACE_Time_Value &tv2 );
friend ACE_Export int operator <= ( const ACE_Time_Value &tv1, const ACE_Time_Value &tv2 );
friend ACE_Export int operator >= ( const ACE_Time_Value &tv1, const ACE_Time_Value &tv2 );
friend ACE_Export int operator == ( const ACE_Time_Value &tv1, const ACE_Time_Value &tv2 );
friend ACE_Export int operator != ( const ACE_Time_Value &tv1, const ACE_Time_Value &tv2 );
void dump (void) const;
private:
void normalize (void);
long tv_sec_;
long tv_usec_;
};
static const ACE_Time_Value zero;
ACE_Time_Value (long sec = 0, long usec = 0);
ACE_Time_Value (const timeval &t);
ACE_Time_Value (const timestruc_t &t);
ACE_Time_Value (const ACE_Time_Value &tv);
ACE_Time_Value (const FILETIME &ft);
void set (long sec = 0, long usec = 0);
void set (const timeval &t);
void set (const timestruc_t &t);
void set (const FILETIME &ft);
long msec (void) const;
void msec (long);
operator timestruc_t () const;
operator timeval () const;
operator FILETIME () const;
long sec (void) const;
void sec (long sec);
long usec (void) const;
void usec (long usec);
void operator += (const ACE_Time_Value &tv);
tv
to this.
void operator -= (const ACE_Time_Value &tv);
tv
to this.
friend ACE_Export ACE_Time_Value operator + (
const ACE_Time_Value &tv1,
const ACE_Time_Value &tv2
);
friend ACE_Export ACE_Time_Value operator - (
const ACE_Time_Value &tv1,
const ACE_Time_Value &tv2
);
friend ACE_Export int operator < (
const ACE_Time_Value &tv1,
const ACE_Time_Value &tv2
);
tv2.
friend ACE_Export int operator > (
const ACE_Time_Value &tv1,
const ACE_Time_Value &tv2
);
friend ACE_Export int operator <= (
const ACE_Time_Value &tv1,
const ACE_Time_Value &tv2
);
= tv2.
friend ACE_Export int operator >= (
const ACE_Time_Value &tv1,
const ACE_Time_Value &tv2
);
friend ACE_Export int operator == (
const ACE_Time_Value &tv1,
const ACE_Time_Value &tv2
);
friend ACE_Export int operator != (
const ACE_Time_Value &tv1,
const ACE_Time_Value &tv2
);
void dump (void) const;