All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines
Public Member Functions | Private Attributes
TELEKYB_NAMESPACE::Timer Class Reference

#include <Timer.hpp>

Inheritance diagram for TELEKYB_NAMESPACE::Timer:
Inheritance graph
[legend]

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.
Timeroperator= (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.

TELEKYB_NAMESPACE::Timer::Timer ( const Time elapsed)

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

Definition at line 22 of file Timer.hpp.

Definition at line 23 of file Timer.hpp.

Definition at line 21 of file Timer.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines


telekyb_base
Author(s): Dr. Antonio Franchi and Martin Riedel
autogenerated on Mon Nov 11 2013 11:12:34