From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/a02243.html | 143 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 docs/doxygen/nel/a02243.html (limited to 'docs/doxygen/nel/a02243.html') diff --git a/docs/doxygen/nel/a02243.html b/docs/doxygen/nel/a02243.html new file mode 100644 index 00000000..b9687d63 --- /dev/null +++ b/docs/doxygen/nel/a02243.html @@ -0,0 +1,143 @@ + + +NeL: NLMISC::CAutoTimer class Reference + + + +
+

NLMISC::CAutoTimer Class Reference

#include <hierarchical_timer.h> +

+


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 475 of file hierarchical_timer.h. + + + + + + + + + +

Public Member Functions

 CAutoTimer (CHTimer *timer)
 ~CAutoTimer ()

Private Attributes

CHTimer_HTimer
+


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + + +
NLMISC::CAutoTimer::CAutoTimer CHTimer timer  )  [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 480 of file hierarchical_timer.h. +

+References _HTimer, and NLMISC::CHTimer::before(). +

+

00480 : _HTimer(timer) { _HTimer->before(); }
+
+

+ + + + +
+ + + + + + + + + +
NLMISC::CAutoTimer::~CAutoTimer  )  [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 481 of file hierarchical_timer.h. +

+References _HTimer, and NLMISC::CHTimer::after(). +

+

00481 { _HTimer->after(); }
+
+


Field Documentation

+

+ + + + +
+ + +
CHTimer* NLMISC::CAutoTimer::_HTimer [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 478 of file hierarchical_timer.h. +

+Referenced by CAutoTimer(), and ~CAutoTimer().

+


The documentation for this class was generated from the following file: +
Generated on Tue Mar 16 13:01:55 2004 for NeL by + +doxygen +1.3.6
+ + -- cgit v1.2.1