Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages   Examples  

Timer Class Reference

#include <Timer.h>

List of all members.

Public Methods

 Timer ()
void Start ()
void Stop ()
float getTime ()
void Print ()
void Tick ()


Detailed Description

Implements timing mechanisms.
Examples:

test_convol.cpp, and test_timer.cpp.

Definition at line 11 of file Timer.h.


Constructor & Destructor Documentation

Timer::Timer ( ) [inline]
 

Constructor

Definition at line 22 of file Timer.h.


Member Function Documentation

void Timer::Print ( )
 

Prints the total elapsed time (user time) between the Start() and the last getTime() or Stop() calls.

Examples:
test_convol.cpp, and test_timer.cpp.

Definition at line 63 of file Timer.cpp.

void Timer::Start ( )
 

Starts the timer.

Examples:
test_convol.cpp, and test_timer.cpp.

Definition at line 12 of file Timer.cpp.

void Timer::Stop ( )
 

Stops the timer.

Examples:
test_convol.cpp, and test_timer.cpp.

Definition at line 22 of file Timer.cpp.

void Timer::Tick ( )
 

Prints elapsed time between Start() and current point (equivalent to getTime() followed by Print()).

Definition at line 40 of file Timer.cpp.

float Timer::getTime ( )
 

Gets elapsed time, in seconds (user time), since the timer was started.

Examples:
test_convol.cpp, and test_timer.cpp.

Definition at line 71 of file Timer.cpp.


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