Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Directories | Class Members | Related Pages

SigCX::TimeVal Class Reference

Timespan. More...

#include <timeval.h>

List of all members.

Public Member Functions

 TimeVal (long secs=0, long usecs=0)
bool operator< (const TimeVal &tv) const
bool operator== (const TimeVal &tv) const
bool operator<= (const TimeVal &tv) const
bool operator>= (const TimeVal &tv) const
TimeVal operator- (const TimeVal &tv) const
TimeVal operator+ (const TimeVal &tv) const
void get_current_time ()

Public Attributes

long tv_sec
long tv_usec


Detailed Description

Timespan.


Constructor & Destructor Documentation

SigCX::TimeVal::TimeVal long  secs = 0,
long  usecs = 0
[inline, explicit]
 

Constructor.

Parameters:
secs Seconds.
usecs Microseconds.


Member Function Documentation

void SigCX::TimeVal::get_current_time  ) 
 

Get the current time.

Store the current time in tv_sec and tv_usec.

TimeVal SigCX::TimeVal::operator+ const TimeVal tv  )  const [inline]
 

Addition operator.

TimeVal SigCX::TimeVal::operator- const TimeVal tv  )  const
 

Substraction operator.

bool SigCX::TimeVal::operator< const TimeVal tv  )  const [inline]
 

Comparision operator.

bool SigCX::TimeVal::operator<= const TimeVal tv  )  const [inline]
 

Comparision operator.

bool SigCX::TimeVal::operator== const TimeVal tv  )  const [inline]
 

Comparision operator.

bool SigCX::TimeVal::operator>= const TimeVal tv  )  const [inline]
 

Comparision operator.


Member Data Documentation

long SigCX::TimeVal::tv_sec
 

Seconds.

long SigCX::TimeVal::tv_usec
 

Microseconds.


The documentation for this class was generated from the following file:
Generated on Sun Apr 10 18:35:43 2005 for SigCX - SigC++ Extras by  doxygen 1.4.2