IT++ Logo Newcom Logo

Timers


Classes

class  itpp::Timer
 A virtual base class for timers. More...
class  itpp::CPU_Timer
 A CPU time timer class

Measures the time spent by the CPU on the current process. If two processes are running concurrently, one real seconds equal 5 CPU seconds per process. The resolution is not very good (in the order of 0.01 seconds). More...

class  itpp::Real_Timer
 A real time timer class

Measures real time. More...


Functions

void itpp::tic ()
 Reset and start timer.
double itpp::toc ()
 Returns the elapsed time since last tic().
void itpp::toc_print ()
 Prints the elapsed time since last tic().
void itpp::pause (double t=-1)
 pause

Function Documentation

void itpp::tic  ) 
 

Reset and start timer.

Definition at line 156 of file timing.cpp.

References itpp::__tic_toc_timer, and itpp::Timer::tic().

Referenced by itpp::gmmtrain().

double itpp::toc  ) 
 

Returns the elapsed time since last tic().

Definition at line 161 of file timing.cpp.

References itpp::__tic_toc_timer, and itpp::Timer::toc().

void itpp::toc_print  ) 
 

Prints the elapsed time since last tic().

Definition at line 166 of file timing.cpp.

References itpp::__tic_toc_timer, and itpp::Timer::toc_print().

void itpp::pause double  t = -1  ) 
 

pause

 pause(n); 
Pauses for n seconds before continuing
 pause(); 
Pauses until a key is pressed

Definition at line 171 of file timing.cpp.

References itpp::Timer::get_time(), and itpp::Timer::start().

SourceForge Logo

Generated on Thu Apr 19 14:19:59 2007 for IT++ by Doxygen 1.4.6