#include <SimpleTimer.h>
Very simple timer
Usage example :
sofa::helper::SimpleTimer mytimer;
void myComputationCode() {
bool timer = true; // should I print performance stats if (timer) mytimer.start("mystep1);
... // step 1 code
if (timer) mytimer.step("mystep2");
... // step 2 code
if (timer) mytimer.stop(); }
| Public Attributes | |
| ctime_t | timer_total | 
| ctime_t | timer_current | 
| ctime_t | timer_freq | 
| ctime_t | timer_start | 
| ctime_t | timers_start | 
| const char * | timers_name [T_NSTEPS] | 
| ctime_t | timers_total [T_NSTEPS] | 
| ctime_t | timers_current [T_NSTEPS] | 
| int | timer_niter | 
| int | timer_nstep | 
| const char * | timer_lastname | 
| Public Member Functions | |
| TSimpleTimer () | |
| void | start (const char *name) | 
| void | step (const char *name="") | 
| void | stop () | 
| ctime_t sofa::helper::TSimpleTimer< nIter, nStep >::timer_current | 
| ctime_t sofa::helper::TSimpleTimer< nIter, nStep >::timer_freq | 
| const char* sofa::helper::TSimpleTimer< nIter, nStep >::timer_lastname | 
| int sofa::helper::TSimpleTimer< nIter, nStep >::timer_niter | 
| int sofa::helper::TSimpleTimer< nIter, nStep >::timer_nstep | 
| ctime_t sofa::helper::TSimpleTimer< nIter, nStep >::timer_start | 
| ctime_t sofa::helper::TSimpleTimer< nIter, nStep >::timer_total | 
| ctime_t sofa::helper::TSimpleTimer< nIter, nStep >::timers_current[T_NSTEPS] | 
| const char* sofa::helper::TSimpleTimer< nIter, nStep >::timers_name[T_NSTEPS] | 
| ctime_t sofa::helper::TSimpleTimer< nIter, nStep >::timers_start | 
| ctime_t sofa::helper::TSimpleTimer< nIter, nStep >::timers_total[T_NSTEPS] | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline | 
| 
 | inline |