# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

CAutoTimer Class Reference

An automatic measuring timer. More...

#include <hierarchical_timer.h>

List of all members.

Public Methods

 CAutoTimer (CHTimer *timer)
 ~CAutoTimer ()

Private Attributes

CHTimer_HTimer


Detailed Description

An automatic measuring timer.

Encapsulates calls to CHTimer, and avoids missuses of before() and after(). ex:

 void myFunction()
 {
        static CHTimer  myTimer("myFunction");
        CAutoTimer              myAuto(myTimer);
        // some code here
 }
 *
Don't forget to call after() to avoid timing wrongness or assertion crashes !
Author:
Benjamin Legros , Nevrax France
Date:
2001

Definition at line 212 of file hierarchical_timer.h.


Constructor & Destructor Documentation

CAutoTimer::CAutoTimer CHTimer   timer [inline]
 

Definition at line 217 of file hierarchical_timer.h.

References CHTimer::before.

CAutoTimer::~CAutoTimer   [inline]
 

Definition at line 218 of file hierarchical_timer.h.

References CHTimer::after.


Member Data Documentation

CHTimer* CAutoTimer::_HTimer [private]
 

Definition at line 215 of file hierarchical_timer.h.


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