Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

cTime Class Reference

The time class can be used to work with time values. More...

#include <new_sim_utils.h>

List of all members.

Public Member Functions

 cTime ()
 Constructor.
 cTime (const struct timeval &tv)
 qualified Constructor with timeval
 cTime (const cTime &t)
 copy Constructor
 cTime (unsigned int s, unsigned int u)
 qualified Constructor with seconds and usec
void Normalize ()
 noramlize the internal data
int Cmp (const cTime &t)
 compare two time classes
bool operator< (const cTime &t)
 lower operator
bool operator<= (const cTime &t)
 lower equal operator
bool operator> (const cTime &t)
 higher operator
bool operator>= (const cTime &t)
 higher equal operator
bool operator== (const cTime &t)
 equal operator
bool operator!= (const cTime &t)
 not equal operator
cTimeoperator+= (const cTime &t)
 add cTime class operator
cTimeoperator+= (int ms)
 add msec value operator
cTimeoperator-= (int ms)
 subtract time value operator
cTimeoperator-= (cTime t)
 subtract time value operator
unsigned int GetMsec ()
 get the time value in msec
void Clear ()
 Clear the value.
bool IsSet ()
 Check whether the time was set.

Static Public Member Functions

static cTime Now ()
 fill the class with actual time

Public Attributes

timeval m_time
 time value


Detailed Description

The time class can be used to work with time values.


The documentation for this class was generated from the following file:
Generated on Mon Apr 26 14:38:55 2010 for New Simulator by  doxygen 1.4.4