MipBaselib::Timer Class Reference
[Time]

timer class, a timer More...

#include <Time.h>

List of all members.

Public Member Functions

 Timer ()
 Default costructor: starts the timer at the current time instant.
 Timer (Time alreadyElapsed)
 Long int constructor: starts the timer at the current instant, storing the elapsed time passed as argument.
 Timer (const Timer &t)
 Copy constructor.
Timeroperator= (const Timer &t)
 Assigment operator =.
void reset ()
 Restarts the timer at the current instant.
void pause ()
 Pauses the timer. It is considered only if is NOT in _pause, It pauses the timer storing the current elapsed time.
void resume ()
 Continue: it is considered only if is in _pause, continues to take the time.
Time get ()
 Gets the current value of the timer.
string print ()
 Prints the current value of the timer.
Decimal freq ()
 Computes the frequency.
string printFreq ()
 Prints the current frequency of the timer.


Detailed Description

timer class, a timer

Author:
Antonio Franchi
Examples:

exampleThread.cpp.


Constructor & Destructor Documentation

MipBaselib::Timer::Timer (  ) 

Default costructor: starts the timer at the current time instant.


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

Generated on Mon Feb 20 07:01:12 2017 for MIP by  doxygen 1.5.6