Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

DTime Class Reference

encapsulates system time More...

#include <DTime.h>

List of all members.

Public Member Functions

 DTime (int usec=0)
 DTime (int sec, int usec)
 DTime (int min, int sec, int usec)
 DTime (int hr, int min, int sec, int usec)
void start ()
 Starts the timer.

DTime reset ()
DTime elapsed () const
 time since last reset or start

float hour () const
float minute () const
float sec () const
float msec () const
int usec () const
DTime operator- (const DTime &b)
DTimeoperator-= (const DTime &b)
DTime operator+ (const DTime &b)
DTimeoperator+= (const DTime &b)
bool operator> (const DTime &b)
bool operator>= (const DTime &b)
bool operator< (const DTime &b)
bool operator<= (const DTime &b)
bool operator== (const DTime &b)
bool operator!= (const DTime &b)

Static Public Member Functions

DTime current ()


Detailed Description

encapsulates system time

Author:
Daniel Larimer


Constructor & Destructor Documentation

DTime::DTime int  usec = 0  ) 
 

DTime::DTime int  sec,
int  usec
 

DTime::DTime int  min,
int  sec,
int  usec
 

DTime::DTime int  hr,
int  min,
int  sec,
int  usec
 


Member Function Documentation

DTime DTime::current  )  [static]
 

DTime DTime::elapsed  )  const
 

time since last reset or start

float DTime::hour  )  const [inline]
 

float DTime::minute  )  const [inline]
 

float DTime::msec  )  const [inline]
 

bool DTime::operator!= const DTime b  )  [inline]
 

DTime DTime::operator+ const DTime b  )  [inline]
 

DTime& DTime::operator+= const DTime b  )  [inline]
 

DTime DTime::operator- const DTime b  )  [inline]
 

DTime& DTime::operator-= const DTime b  )  [inline]
 

bool DTime::operator< const DTime b  )  [inline]
 

bool DTime::operator<= const DTime b  )  [inline]
 

bool DTime::operator== const DTime b  )  [inline]
 

bool DTime::operator> const DTime b  )  [inline]
 

bool DTime::operator>= const DTime b  )  [inline]
 

DTime DTime::reset  ) 
 

Resets the timer and returns the time since the last reset or start

Returns:
time since last reset or start

float DTime::sec  )  const [inline]
 

void DTime::start  ) 
 

Starts the timer.

int DTime::usec  )  const [inline]
 


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 12:49:28 2004 for pexpr by doxygen 1.3.4