#include <Timer.hpp>
List of all members.
Public Member Functions |
std::string | freqToString () |
| Prints the current frequency of the timer.
|
double | frequency () |
| Computes the frequency.
|
Time | getElapsed () const |
| Gets the current value of the timer.
|
Timer & | operator= (const Timer &t) |
| Assigment operator =.
|
void | pause () |
| Pauses the timer. It is considered only if is NOT in _pause, It pauses the timer storing the current elapsed time.
|
void | reset () |
| Restarts the timer at the current instant.
|
void | resume () |
| Continue: it is considered only if is in _pause, continues to take the time.
|
| Timer () |
| Default costructor: starts the timer at the current time instant.
|
| Timer (const Time &elapsed) |
| starts the timer at the current instant, storing the elapsed time passed as argument.
|
| Timer (const Timer &t) |
| Copy constructor.
|
std::string | toString () |
| Prints the current value of the timer.
|
virtual | ~Timer () |
| default destructor
|
Private Attributes |
Time | _accu |
bool | _pause |
Time | _start |
Detailed Description
Definition at line 19 of file Timer.hpp.
Constructor & Destructor Documentation
Default costructor: starts the timer at the current time instant.
Definition at line 12 of file Timer.cpp.
starts the timer at the current instant, storing the elapsed time passed as argument.
Definition at line 21 of file Timer.cpp.
Copy constructor.
Definition at line 30 of file Timer.cpp.
default destructor
Definition at line 36 of file Timer.cpp.
Member Function Documentation
Prints the current frequency of the timer.
Definition at line 104 of file Timer.cpp.
Computes the frequency.
Definition at line 98 of file Timer.cpp.
Gets the current value of the timer.
- Returns:
- time elapsed
Definition at line 77 of file Timer.cpp.
Timer & TELEKYB_NAMESPACE::Timer::operator= |
( |
const Timer & |
t | ) |
|
Assigment operator =.
Definition at line 40 of file Timer.cpp.
Pauses the timer. It is considered only if is NOT in _pause, It pauses the timer storing the current elapsed time.
Definition at line 55 of file Timer.cpp.
Restarts the timer at the current instant.
Definition at line 50 of file Timer.cpp.
Continue: it is considered only if is in _pause, continues to take the time.
Definition at line 67 of file Timer.cpp.
Prints the current value of the timer.
Definition at line 89 of file Timer.cpp.
Member Data Documentation
The documentation for this class was generated from the following files: