Time Class Reference
[Time]

time class, provide a representation of time in seconds and microseconds More...

#include <Time.h>

List of all members.

Public Member Functions

 Time ()
 default constructor
 Time (long int s, long int u)
 long int constructor
 Time (Decimal t)
 Decimal constructor.
 Time (const Time &t)
 copy constructor
Timeoperator= (const Time &t)
 assigment operator =
Timeoperator+= (const Time &t)
 compound assignment operator +=
Timeoperator-= (const Time &t)
 compound assignment operator -=
const Time operator+ (const Time &other) const
 binary arithmetic operator +
const Time operator- (const Time &other) const
 binary arithmetic operator -
Timeoperator*= (Decimal scalar)
 compound assignment operator *
Timeoperator* (Decimal scalar)
 compound assignment operator *
bool operator== (const Time &other) const
 compound operator ==
bool operator!= (const Time &other) const
 compound operator !=
bool operator> (const Time &other) const
 greater than operator >
bool operator< (const Time &other) const
 less than operator >
bool operator>= (const Time &other) const
 geq operator >
bool operator<= (const Time &other) const
 leq operator >
long int sec ()
 elements
long int usec ()
Decimal dCast ()
 decimal cast of Time (in secs)
Decimal freq ()
 frequency
string print ()
 print
string printFreq ()
 print the frequency
string printDCast ()

Friends

class boost::serialization::access


Detailed Description

time class, provide a representation of time in seconds and microseconds

Author:
Antonio Franchi
Examples:

exampleCommModule.cpp, exampleDraWin.cpp, and exampleThread.cpp.


Constructor & Destructor Documentation

Time::Time (  ) 

default constructor

in how many part is divided the second, 1000000 is usec

Time::Time ( long int  s,
long int  u 
)

long int constructor

Time::Time ( Decimal  t  ) 

Decimal constructor.

Time::Time ( const Time t  ) 

copy constructor


Member Function Documentation

Time & Time::operator= ( const Time t  ) 

assigment operator =

Time & Time::operator+= ( const Time t  ) 

compound assignment operator +=

Time & Time::operator-= ( const Time t  ) 

compound assignment operator -=

const Time Time::operator+ ( const Time other  )  const

binary arithmetic operator +

const Time Time::operator- ( const Time other  )  const

binary arithmetic operator -

Time & Time::operator*= ( Decimal  scalar  ) 

compound assignment operator *

Time & Time::operator* ( Decimal  scalar  ) 

compound assignment operator *

bool Time::operator== ( const Time other  )  const

compound operator ==

bool Time::operator!= ( const Time other  )  const

compound operator !=

bool Time::operator> ( const Time other  )  const

greater than operator >

bool Time::operator< ( const Time other  )  const

less than operator >

bool Time::operator>= ( const Time other  )  const

geq operator >

bool Time::operator<= ( const Time other  )  const

leq operator >

long int Time::sec (  ) 

elements

long int Time::usec (  ) 

Decimal Time::dCast (  ) 

decimal cast of Time (in secs)

Examples:
exampleDraWin.cpp.

Decimal Time::freq (  ) 

frequency

string Time::print ( void   ) 

print

string Time::printFreq (  ) 

print the frequency

string Time::printDCast (  ) 


Friends And Related Function Documentation

friend class boost::serialization::access [friend]


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

Generated on Tue Jun 15 07:01:10 2010 for MIP by  doxygen 1.5.6