<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Crypto++: ThreadUserTimer Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>ThreadUserTimer Class Reference</h1><!-- doxytag: class="ThreadUserTimer" --><!-- doxytag: inherits="TimerBase" --> <p>measure CPU time spent executing instructions of this thread (if supported by OS) <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="hrtimer_8h_source.html">hrtimer.h</a>></code></p> <div class="dynheader"> Inheritance diagram for ThreadUserTimer:</div> <div class="dynsection"> <div class="center"> <img src="class_thread_user_timer.gif" usemap="#ThreadUserTimer_map" alt=""/> <map id="ThreadUserTimer_map" name="ThreadUserTimer_map"> <area href="class_timer_base.html" alt="TimerBase" shape="rect" coords="0,0,109,24"/> </map> </div> </div> <p><a href="class_thread_user_timer-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><b>Unit</b> { <b>SECONDS</b> = 0, <b>MILLISECONDS</b>, <b>MICROSECONDS</b>, <b>NANOSECONDS</b> }</td></tr> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeed675d41692cf082fd5ebb4f4496f0b"></a><!-- doxytag: member="ThreadUserTimer::ThreadUserTimer" ref="aeed675d41692cf082fd5ebb4f4496f0b" args="(Unit unit=TimerBase::SECONDS, bool stuckAtZero=false)" --> </td><td class="memItemRight" valign="bottom"><b>ThreadUserTimer</b> (Unit unit=TimerBase::SECONDS, bool stuckAtZero=false)</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a91697dfcc4a2a2ed88ac18a3196dff71"></a><!-- doxytag: member="ThreadUserTimer::GetCurrentTimerValue" ref="a91697dfcc4a2a2ed88ac18a3196dff71" args="()" --> TimerWord </td><td class="memItemRight" valign="bottom"><b>GetCurrentTimerValue</b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae7fd32f847909e268eca39a91d07aab0"></a><!-- doxytag: member="ThreadUserTimer::TicksPerSecond" ref="ae7fd32f847909e268eca39a91d07aab0" args="()" --> TimerWord </td><td class="memItemRight" valign="bottom"><b>TicksPerSecond</b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a50804b61c4254f7289c6c67515d5d46d"></a><!-- doxytag: member="ThreadUserTimer::StartTimer" ref="a50804b61c4254f7289c6c67515d5d46d" args="()" --> void </td><td class="memItemRight" valign="bottom"><b>StartTimer</b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3262a9d0815f1899701ee83c3ef8cf43"></a><!-- doxytag: member="ThreadUserTimer::ElapsedTimeAsDouble" ref="a3262a9d0815f1899701ee83c3ef8cf43" args="()" --> double </td><td class="memItemRight" valign="bottom"><b>ElapsedTimeAsDouble</b> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeab32d0bc5ca83836e0e9f9e108d66a4"></a><!-- doxytag: member="ThreadUserTimer::ElapsedTime" ref="aeab32d0bc5ca83836e0e9f9e108d66a4" args="()" --> unsigned long </td><td class="memItemRight" valign="bottom"><b>ElapsedTime</b> ()</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>measure CPU time spent executing instructions of this thread (if supported by OS) </p> <p>/note This only works correctly on Windows NT or later. On Unix it reports process time, and others wall clock time. </p> <p>Definition at line <a class="el" href="hrtimer_8h_source.html#l00042">42</a> of file <a class="el" href="hrtimer_8h_source.html">hrtimer.h</a>.</p> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="hrtimer_8h_source.html">hrtimer.h</a></li> <li><a class="el" href="hrtimer_8cpp_source.html">hrtimer.cpp</a></li> </ul> </div> <hr size="1"/><address style="text-align: right;"><small>Generated on 9 Dec 2009 for Crypto++ by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> </body> </html>