aboutsummaryrefslogtreecommitdiff
path: root/docs/doxygen/nel/a03446.html
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
committerneodarz <neodarz@neodarz.net>2018-08-11 20:21:34 +0200
commit0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch)
tree2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a03446.html
downloadnevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz
nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip
Initial commit
Diffstat (limited to 'docs/doxygen/nel/a03446.html')
-rw-r--r--docs/doxygen/nel/a03446.html738
1 files changed, 738 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a03446.html b/docs/doxygen/nel/a03446.html
new file mode 100644
index 00000000..7151efc7
--- /dev/null
+++ b/docs/doxygen/nel/a03446.html
@@ -0,0 +1,738 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
+<title>NeL: NLMISC::CStopWatch class Reference</title>
+<link href="doxygen.css" rel="stylesheet" type="text/css">
+</head><body>
+<!-- Generated by Doxygen 1.3.6 -->
+<div class="qindex"> <form class="search" action="search.php" method="get">
+<a class="qindex" href="main.html">Main&nbsp;Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
+<h1>NLMISC::CStopWatch Class Reference</h1><code>#include &lt;<a class="el" href="a06460.html">stop_watch.h</a>&gt;</code>
+<p>
+<hr><a name="_details"></a><h2>Detailed Description</h2>
+Stopwatch class used for performance measurements and statistics. To measure the duration of a cycle, call <a class="el" href="a03446.html#NLMISC_1_1CStopWatcha10">stop()</a>, get the results, then call <a class="el" href="a03446.html#NLMISC_1_1CStopWatcha9">start()</a>. <dl compact><dt><b>Author:</b></dt><dd>Olivier Cado <p>
+Nevrax France </dd></dl>
+<dl compact><dt><b>Date:</b></dt><dd>2001 </dd></dl>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06460.html#l00048">48</a> of file <a class="el" href="a06460.html">stop_watch.h</a>.<table border=0 cellpadding=0 cellspacing=0>
+<tr><td></td></tr>
+<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatcha0">addMeasurement</a> (<a class="el" href="a05378.html#a233">TTickDuration</a> <a class="el" href="a04223.html#a627">t</a>)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add an external duration (in ticks unit) to the average queue. <a href="#NLMISC_1_1CStopWatcha0"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatcha1">addTime</a> (<a class="el" href="a05378.html#a233">TTickDuration</a> <a class="el" href="a04223.html#a627">t</a>)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Add time (in ticks unit) to the current measurement. <a href="#NLMISC_1_1CStopWatcha1"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatcha2">CStopWatch</a> (<a class="el" href="a04558.html#a15">uint</a> queueLength=0)</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor. Set a non-zero queueLength for partial average calculation. <a href="#NLMISC_1_1CStopWatcha2"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05378.html#a234">TMsDuration</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatcha3">getAverageDuration</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Average of the duration. <a href="#NLMISC_1_1CStopWatcha3"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05378.html#a234">TMsDuration</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatcha4">getDuration</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Elapsed time in millisecond (call it after <a class="el" href="a03446.html#NLMISC_1_1CStopWatcha10">stop()</a>). <a href="#NLMISC_1_1CStopWatcha4"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05378.html#a234">TMsDuration</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatcha5">getPartialAverage</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Average duration of the queueLength last durations (using the queueLength argument specified in the constructor). <a href="#NLMISC_1_1CStopWatcha5"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatcha6">measurementNumber</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Number of measurements. <a href="#NLMISC_1_1CStopWatcha6"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatcha7">pause</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Pause. <a href="#NLMISC_1_1CStopWatcha7"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatcha8">resume</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Resume. <a href="#NLMISC_1_1CStopWatcha8"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatcha9">start</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Begin measurement. <a href="#NLMISC_1_1CStopWatcha9"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatcha10">stop</a> ()</td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">End measurement. <a href="#NLMISC_1_1CStopWatcha10"></a><br><br></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05378.html#a233">TTickDuration</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatcha11">sumTicks</a> () const </td></tr>
+
+<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sum of the measured durations (in ticks). <a href="#NLMISC_1_1CStopWatcha11"></a><br><br></td></tr>
+<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05378.html#a243">TTicks</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatchr0">_BeginTime</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05378.html#a233">TTickDuration</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatchr1">_ElapsedTicks</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a11">uint32</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatchr2">_MeasurementNumber</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatchr3">_QLength</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top>std::deque&lt; <a class="el" href="a05378.html#a233">TTickDuration</a> &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatchr4">_Queue</a></td></tr>
+
+<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a05378.html#a233">TTickDuration</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="a03446.html#NLMISC_1_1CStopWatchr5">_SumTicks</a></td></tr>
+
+</table>
+<hr><h2>Constructor &amp; Destructor Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CStopWatcha2" doxytag="NLMISC::CStopWatch::CStopWatch" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> NLMISC::CStopWatch::CStopWatch </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a15">uint</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>queueLength</em> = 0 </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Constructor. Set a non-zero queueLength for partial average calculation.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06459.html#l00039">39</a> of file <a class="el" href="a06459.html">stop_watch.cpp</a>.
+<p>
+References <a class="el" href="a05981.html#l00105">uint</a>.
+<p>
+<div class="fragment"><pre>00039 :
+00040 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr0">_BeginTime</a>( 0 ),
+00041 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr1">_ElapsedTicks</a>( 0 ),
+00042 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr5">_SumTicks</a>( 0 ),
+00043 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr2">_MeasurementNumber</a>( 0 ),
+00044 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr4">_Queue</a>(),
+00045 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr3">_QLength</a>( queueLength )
+00046 {}
+
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Member Function Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CStopWatcha0" doxytag="NLMISC::CStopWatch::addMeasurement" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CStopWatch::addMeasurement </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a05378.html#a233">TTickDuration</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>t</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Add an external duration (in ticks unit) to the average queue.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06459.html#l00112">112</a> of file <a class="el" href="a06459.html">stop_watch.cpp</a>.
+<p>
+References <a class="el" href="a06460.html#l00100">_MeasurementNumber</a>, <a class="el" href="a06460.html#l00103">_QLength</a>, <a class="el" href="a06460.html#l00102">_Queue</a>, <a class="el" href="a06460.html#l00099">_SumTicks</a>, <a class="el" href="a05646.html#l00985">t</a>, and <a class="el" href="a06460.html#l00037">NLMISC::TTickDuration</a>.
+<p>
+<div class="fragment"><pre>00113 {
+00114 <span class="comment">// Setup average</span>
+00115 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr5">_SumTicks</a> += <a class="code" href="a04223.html#a627">t</a>;
+00116 ++<a class="code" href="a03446.html#NLMISC_1_1CStopWatchr2">_MeasurementNumber</a>;
+00117
+00118 <span class="comment">// Setup partial average</span>
+00119 <span class="keywordflow">if</span> ( <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr3">_QLength</a> != 0 )
+00120 {
+00121 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr4">_Queue</a>.push_back( t );
+00122 <span class="keywordflow">if</span> ( <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr4">_Queue</a>.size() &gt; <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr3">_QLength</a> )
+00123 {
+00124 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr4">_Queue</a>.pop_front();
+00125 }
+00126 }
+00127
+00128 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CStopWatcha1" doxytag="NLMISC::CStopWatch::addTime" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CStopWatch::addTime </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="md" nowrap valign="top"><a class="el" href="a05378.html#a233">TTickDuration</a>&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> <em>t</em> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Add time (in ticks unit) to the current measurement.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06459.html#l00080">80</a> of file <a class="el" href="a06459.html">stop_watch.cpp</a>.
+<p>
+References <a class="el" href="a06460.html#l00097">_ElapsedTicks</a>, <a class="el" href="a05646.html#l00985">t</a>, and <a class="el" href="a06460.html#l00037">NLMISC::TTickDuration</a>.
+<p>
+<div class="fragment"><pre>00081 {
+00082 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr1">_ElapsedTicks</a> += <a class="code" href="a04223.html#a627">t</a>;
+00083 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CStopWatcha3" doxytag="NLMISC::CStopWatch::getAverageDuration" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a05378.html#a234">TMsDuration</a> NLMISC::CStopWatch::getAverageDuration </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const</td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Average of the duration.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06459.html#l00155">155</a> of file <a class="el" href="a06459.html">stop_watch.cpp</a>.
+<p>
+References <a class="el" href="a06460.html#l00100">_MeasurementNumber</a>, <a class="el" href="a06460.html#l00099">_SumTicks</a>, and <a class="el" href="a06460.html#l00038">NLMISC::TMsDuration</a>.
+<p>
+<div class="fragment"><pre>00156 {
+00157 <span class="keywordflow">return</span> (<a class="code" href="a05378.html#a234">TMsDuration</a>)(CTime::ticksToSecond( _SumTicks / _MeasurementNumber ) * 1000.0);
+00158 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CStopWatcha4" doxytag="NLMISC::CStopWatch::getDuration" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a05378.html#a234">TMsDuration</a> NLMISC::CStopWatch::getDuration </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const</td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Elapsed time in millisecond (call it after <a class="el" href="a03446.html#NLMISC_1_1CStopWatcha10">stop()</a>).
+<p>
+
+<p>
+Definition at line <a class="el" href="a06459.html#l00134">134</a> of file <a class="el" href="a06459.html">stop_watch.cpp</a>.
+<p>
+References <a class="el" href="a06460.html#l00097">_ElapsedTicks</a>, and <a class="el" href="a06460.html#l00038">NLMISC::TMsDuration</a>.
+<p>
+<div class="fragment"><pre>00135 {
+00136 <span class="keywordflow">return</span> (<a class="code" href="a05378.html#a234">TMsDuration</a>)(CTime::ticksToSecond( _ElapsedTicks ) * 1000.0);
+00137 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CStopWatcha5" doxytag="NLMISC::CStopWatch::getPartialAverage" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a05378.html#a234">TMsDuration</a> NLMISC::CStopWatch::getPartialAverage </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const</td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Average duration of the queueLength last durations (using the queueLength argument specified in the constructor).
+<p>
+
+<p>
+Definition at line <a class="el" href="a06459.html#l00143">143</a> of file <a class="el" href="a06459.html">stop_watch.cpp</a>.
+<p>
+References <a class="el" href="a06460.html#l00102">_Queue</a>, and <a class="el" href="a06460.html#l00038">NLMISC::TMsDuration</a>.
+<p>
+<div class="fragment"><pre>00144 {
+00145 <span class="keywordflow">if</span> (<a class="code" href="a03446.html#NLMISC_1_1CStopWatchr4">_Queue</a>.size() == 0)
+00146 <span class="keywordflow">return</span> (<a class="code" href="a05378.html#a234">TMsDuration</a>)0;
+00147 <span class="keywordflow">else</span>
+00148 <span class="keywordflow">return</span> (<a class="code" href="a05378.html#a234">TMsDuration</a>)(CTime::ticksToSecond( accumulate( <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr4">_Queue</a>.begin(), <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr4">_Queue</a>.end(), 0 ) / <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr4">_Queue</a>.size() ) * 1000.0);
+00149 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CStopWatcha6" doxytag="NLMISC::CStopWatch::measurementNumber" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> NLMISC::CStopWatch::measurementNumber </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Number of measurements.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06460.html#l00092">92</a> of file <a class="el" href="a06460.html">stop_watch.h</a>.
+<p>
+References <a class="el" href="a06460.html#l00100">_MeasurementNumber</a>, and <a class="el" href="a05981.html#l00100">uint32</a>.
+<p>
+<div class="fragment"><pre>00092 { <span class="keywordflow">return</span> <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr2">_MeasurementNumber</a>; }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CStopWatcha7" doxytag="NLMISC::CStopWatch::pause" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CStopWatch::pause </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Pause.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06459.html#l00062">62</a> of file <a class="el" href="a06459.html">stop_watch.cpp</a>.
+<p>
+References <a class="el" href="a06460.html#l00097">_ElapsedTicks</a>, and <a class="el" href="a06460.html#l00037">NLMISC::TTickDuration</a>.
+<p>
+<div class="fragment"><pre>00063 {
+00064 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr1">_ElapsedTicks</a> += (<a class="code" href="a05378.html#a233">TTickDuration</a>)(CTime::getPerformanceTime() - <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr0">_BeginTime</a>);
+00065 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CStopWatcha8" doxytag="NLMISC::CStopWatch::resume" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CStopWatch::resume </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Resume.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06459.html#l00071">71</a> of file <a class="el" href="a06459.html">stop_watch.cpp</a>.
+<p>
+<div class="fragment"><pre>00072 {
+00073 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr0">_BeginTime</a> = CTime::getPerformanceTime();
+00074 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CStopWatcha9" doxytag="NLMISC::CStopWatch::start" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CStopWatch::start </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Begin measurement.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06459.html#l00052">52</a> of file <a class="el" href="a06459.html">stop_watch.cpp</a>.
+<p>
+References <a class="el" href="a06460.html#l00097">_ElapsedTicks</a>.
+<p>
+<div class="fragment"><pre>00053 {
+00054 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr0">_BeginTime</a> = CTime::getPerformanceTime();
+00055 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr1">_ElapsedTicks</a> = 0;
+00056 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CStopWatcha10" doxytag="NLMISC::CStopWatch::stop" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> void NLMISC::CStopWatch::stop </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+End measurement.
+<p>
+
+<p>
+Definition at line <a class="el" href="a06459.html#l00089">89</a> of file <a class="el" href="a06459.html">stop_watch.cpp</a>.
+<p>
+References <a class="el" href="a06460.html#l00097">_ElapsedTicks</a>, <a class="el" href="a06460.html#l00100">_MeasurementNumber</a>, <a class="el" href="a06460.html#l00103">_QLength</a>, <a class="el" href="a06460.html#l00102">_Queue</a>, <a class="el" href="a06460.html#l00099">_SumTicks</a>, and <a class="el" href="a06460.html#l00037">NLMISC::TTickDuration</a>.
+<p>
+<div class="fragment"><pre>00090 {
+00091 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr1">_ElapsedTicks</a> += (<a class="code" href="a05378.html#a233">TTickDuration</a>)(CTime::getPerformanceTime() - <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr0">_BeginTime</a>);
+00092
+00093 <span class="comment">// Setup average</span>
+00094 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr5">_SumTicks</a> += <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr1">_ElapsedTicks</a>;
+00095 ++<a class="code" href="a03446.html#NLMISC_1_1CStopWatchr2">_MeasurementNumber</a>;
+00096
+00097 <span class="comment">// Setup partial average</span>
+00098 <span class="keywordflow">if</span> ( <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr3">_QLength</a> != 0 )
+00099 {
+00100 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr4">_Queue</a>.push_back( _ElapsedTicks );
+00101 <span class="keywordflow">if</span> ( <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr4">_Queue</a>.size() &gt; <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr3">_QLength</a> )
+00102 {
+00103 <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr4">_Queue</a>.pop_front();
+00104 }
+00105 }
+00106 }
+</pre></div> </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CStopWatcha11" doxytag="NLMISC::CStopWatch::sumTicks" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a05378.html#a233">TTickDuration</a> NLMISC::CStopWatch::sumTicks </td>
+ <td class="md" valign="top">(&nbsp;</td>
+ <td class="mdname1" valign="top" nowrap> </td>
+ <td class="md" valign="top">&nbsp;)&nbsp;</td>
+ <td class="md" nowrap> const<code> [inline]</code></td>
+ </tr>
+
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+Sum of the measured durations (in ticks).
+<p>
+
+<p>
+Definition at line <a class="el" href="a06460.html#l00089">89</a> of file <a class="el" href="a06460.html">stop_watch.h</a>.
+<p>
+References <a class="el" href="a06460.html#l00099">_SumTicks</a>, and <a class="el" href="a06460.html#l00037">NLMISC::TTickDuration</a>.
+<p>
+<div class="fragment"><pre>00089 { <span class="keywordflow">return</span> <a class="code" href="a03446.html#NLMISC_1_1CStopWatchr5">_SumTicks</a>; }
+</pre></div> </td>
+ </tr>
+</table>
+<hr><h2>Field Documentation</h2>
+<a class="anchor" name="NLMISC_1_1CStopWatchr0" doxytag="NLMISC::CStopWatch::_BeginTime" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a05378.html#a243">TTicks</a> <a class="el" href="a03446.html#NLMISC_1_1CStopWatchr0">NLMISC::CStopWatch::_BeginTime</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06460.html#l00096">96</a> of file <a class="el" href="a06460.html">stop_watch.h</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CStopWatchr1" doxytag="NLMISC::CStopWatch::_ElapsedTicks" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a05378.html#a233">TTickDuration</a> <a class="el" href="a03446.html#NLMISC_1_1CStopWatchr1">NLMISC::CStopWatch::_ElapsedTicks</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06460.html#l00097">97</a> of file <a class="el" href="a06460.html">stop_watch.h</a>.
+<p>
+Referenced by <a class="el" href="a06459.html#l00080">addTime()</a>, <a class="el" href="a06459.html#l00134">getDuration()</a>, <a class="el" href="a06459.html#l00062">pause()</a>, <a class="el" href="a06459.html#l00052">start()</a>, and <a class="el" href="a06459.html#l00089">stop()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CStopWatchr2" doxytag="NLMISC::CStopWatch::_MeasurementNumber" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a11">uint32</a> <a class="el" href="a03446.html#NLMISC_1_1CStopWatchr2">NLMISC::CStopWatch::_MeasurementNumber</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06460.html#l00100">100</a> of file <a class="el" href="a06460.html">stop_watch.h</a>.
+<p>
+Referenced by <a class="el" href="a06459.html#l00112">addMeasurement()</a>, <a class="el" href="a06459.html#l00155">getAverageDuration()</a>, <a class="el" href="a06460.html#l00092">measurementNumber()</a>, and <a class="el" href="a06459.html#l00089">stop()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CStopWatchr3" doxytag="NLMISC::CStopWatch::_QLength" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a04558.html#a15">uint</a> <a class="el" href="a03446.html#NLMISC_1_1CStopWatchr3">NLMISC::CStopWatch::_QLength</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06460.html#l00103">103</a> of file <a class="el" href="a06460.html">stop_watch.h</a>.
+<p>
+Referenced by <a class="el" href="a06459.html#l00112">addMeasurement()</a>, and <a class="el" href="a06459.html#l00089">stop()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CStopWatchr4" doxytag="NLMISC::CStopWatch::_Queue" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> std::deque&lt;<a class="el" href="a05378.html#a233">TTickDuration</a>&gt; <a class="el" href="a03446.html#NLMISC_1_1CStopWatchr4">NLMISC::CStopWatch::_Queue</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06460.html#l00102">102</a> of file <a class="el" href="a06460.html">stop_watch.h</a>.
+<p>
+Referenced by <a class="el" href="a06459.html#l00112">addMeasurement()</a>, <a class="el" href="a06459.html#l00143">getPartialAverage()</a>, and <a class="el" href="a06459.html#l00089">stop()</a>. </td>
+ </tr>
+</table>
+<a class="anchor" name="NLMISC_1_1CStopWatchr5" doxytag="NLMISC::CStopWatch::_SumTicks" ></a><p>
+<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
+ <tr>
+ <td class="mdRow">
+ <table cellpadding="0" cellspacing="0" border="0">
+ <tr>
+ <td class="md" nowrap valign="top"> <a class="el" href="a05378.html#a233">TTickDuration</a> <a class="el" href="a03446.html#NLMISC_1_1CStopWatchr5">NLMISC::CStopWatch::_SumTicks</a><code> [private]</code>
+ </table>
+ </td>
+ </tr>
+</table>
+<table cellspacing=5 cellpadding=0 border=0>
+ <tr>
+ <td>
+ &nbsp;
+ </td>
+ <td>
+
+<p>
+
+<p>
+Definition at line <a class="el" href="a06460.html#l00099">99</a> of file <a class="el" href="a06460.html">stop_watch.h</a>.
+<p>
+Referenced by <a class="el" href="a06459.html#l00112">addMeasurement()</a>, <a class="el" href="a06459.html#l00155">getAverageDuration()</a>, <a class="el" href="a06459.html#l00089">stop()</a>, and <a class="el" href="a06460.html#l00089">sumTicks()</a>. </td>
+ </tr>
+</table>
+<hr>The documentation for this class was generated from the following files:<ul>
+<li><a class="el" href="a06460.html">stop_watch.h</a><li><a class="el" href="a06459.html">stop_watch.cpp</a></ul>
+<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 13:35:13 2004 for NeL by
+<a href="http://www.doxygen.org/index.html">
+<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
+</a>1.3.6 </small></address>
+</body>
+</html>