Time Class Reference

#include <SimTime.h>

Collaboration diagram for Time:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Time ()
 Time (const Time &t)
tic_t in_tics () const
 Get time expressed in tics.
step_t in_steps (const Time &dt) const
 Get time expressed in multiples of dt.
double in_ms () const
 Get time expressed in milliseconds.
double in_sec () const
 Get time expressed in seconds.
string toString () const
bool operator== (const Time &t) const
bool operator!= (const Time &t) const
bool operator<= (const Time &t) const
bool operator< (const Time &t) const
bool operator>= (const Time &t) const
bool operator> (const Time &t) const
Time operator+= (const Time &t)
Time operator-= (const Time &t)
Time operator+ (const Time &t)
Time operator- (const Time &t)

Static Public Member Functions

static Time ticks (tic_t t)
static Time steps (const step_t s, const Time &dt)
static Time ms (double t)
static Time sec (double t)


Detailed Description

Definition at line 47 of file SimTime.h.


Constructor & Destructor Documentation

Time::Time (  )  [inline]

Definition at line 51 of file SimTime.h.

Time::Time ( const Time t  )  [inline]

Definition at line 52 of file SimTime.h.


Member Function Documentation

Time Time::ticks ( tic_t  t  )  [inline, static]

Definition at line 106 of file SimTime.h.

References _tics.

Time Time::steps ( const step_t  s,
const Time dt 
) [inline, static]

Time Time::ms ( double  t  )  [inline, static]

Definition at line 120 of file SimTime.h.

References _tics.

Referenced by SingleThreadSimEngine::reset().

Time Time::sec ( double  t  )  [inline, static]

tic_t Time::in_tics (  )  const [inline]

Get time expressed in tics.

Definition at line 133 of file SimTime.h.

step_t Time::in_steps ( const Time dt  )  const [inline]

double Time::in_ms (  )  const [inline]

double Time::in_sec (  )  const [inline]

string Time::toString ( void   )  const [inline]

Definition at line 153 of file SimTime.h.

References in_ms().

Referenced by operator+=(), and operator<<().

Here is the call graph for this function:

bool Time::operator== ( const Time t  )  const [inline]

Definition at line 158 of file SimTime.h.

References _tics.

bool Time::operator!= ( const Time t  )  const [inline]

Definition at line 163 of file SimTime.h.

References _tics.

bool Time::operator<= ( const Time t  )  const [inline]

Definition at line 168 of file SimTime.h.

References _tics.

bool Time::operator< ( const Time t  )  const [inline]

Definition at line 173 of file SimTime.h.

References _tics.

bool Time::operator>= ( const Time t  )  const [inline]

Definition at line 178 of file SimTime.h.

References _tics.

bool Time::operator> ( const Time t  )  const [inline]

Definition at line 183 of file SimTime.h.

References _tics.

Time Time::operator+= ( const Time t  )  [inline]

Definition at line 188 of file SimTime.h.

References _tics, and toString().

Here is the call graph for this function:

Time Time::operator-= ( const Time t  )  [inline]

Definition at line 200 of file SimTime.h.

References _tics.

Time Time::operator+ ( const Time t  )  [inline]

Definition at line 208 of file SimTime.h.

Time Time::operator- ( const Time t  )  [inline]

Definition at line 215 of file SimTime.h.


The documentation for this class was generated from the following files:

Generated on Wed Jul 9 16:34:55 2008 for PCSIM by  doxygen 1.5.5