<html> <head> <title>Ogre::Win32Timer class Reference - OGRE Documentation</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link type="text/css" rel="stylesheet" href="style.css"> </head> <body> <!-- Generated by Doxygen 1.2.16 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> </center> <hr><h1>Ogre::Win32Timer Class Reference</h1><code>#include <<a class="el" href="OgreWin32Timer_8h-source.html">OgreWin32Timer.h</a>></code> <p> Inheritance diagram for Ogre::Win32Timer:<p><center><img src="classOgre_1_1Win32Timer__inherit__graph.png" border="0" usemap="#Ogre_1_1Win32Timer__inherit__map" alt="Inheritance graph"></center> <map name="Ogre_1_1Win32Timer__inherit__map"> <area href="classOgre_1_1Timer.html" shape="rect" coords="25,36,105,17" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for Ogre::Win32Timer:<p><center><img src="classOgre_1_1Win32Timer__coll__graph.png" border="0" usemap="#Ogre_1_1Win32Timer__coll__map" alt="Collaboration graph"></center> <map name="Ogre_1_1Win32Timer__coll__map"> <area href="classOgre_1_1Timer.html" shape="rect" coords="25,36,105,17" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classOgre_1_1Win32Timer-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top>virtual void </td><td valign=bottom><a class="el" href="classOgre_1_1Win32Timer.html#Ogre_1_1Win32Timera0">reset</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Resets timer.</em> <a href="#Ogre_1_1Win32Timera0"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>virtual unsigned long </td><td valign=bottom><a class="el" href="classOgre_1_1Win32Timer.html#Ogre_1_1Win32Timera1">getMilliseconds</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Returns milliseconds since initialisation or last reset.</em> <a href="#Ogre_1_1Win32Timera1"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>virtual unsigned long </td><td valign=bottom><a class="el" href="classOgre_1_1Win32Timer.html#Ogre_1_1Win32Timera2">getMicroseconds</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Returns microseconds since initialisation or last reset.</em> <a href="#Ogre_1_1Win32Timera2"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>virtual unsigned long </td><td valign=bottom><a class="el" href="classOgre_1_1Win32Timer.html#Ogre_1_1Win32Timera3">getMillisecondsCPU</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Returns milliseconds since initialisation or last reset, only CPU time measured.</em> <a href="#Ogre_1_1Win32Timera3"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>virtual unsigned long </td><td valign=bottom><a class="el" href="classOgre_1_1Win32Timer.html#Ogre_1_1Win32Timera4">getMicrosecondsCPU</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Returns microseconds since initialisation or last reset, only CPU time measured.</em> <a href="#Ogre_1_1Win32Timera4"></a><em></em></font><br><br></td></tr> <tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr> <tr><td nowrap align=right valign=top>clock_t </td><td valign=bottom><a class="el" href="classOgre_1_1Win32Timer.html#Ogre_1_1Win32Timern0">zeroClock</a></td></tr> <tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> <tr><td nowrap align=right valign=top>LARGE_INTEGER </td><td valign=bottom><a class="el" href="classOgre_1_1Win32Timer.html#Ogre_1_1Win32Timero0">mStartTime</a></td></tr> <tr><td nowrap align=right valign=top>LARGE_INTEGER </td><td valign=bottom><a class="el" href="classOgre_1_1Win32Timer.html#Ogre_1_1Win32Timero1">mFrequency</a></td></tr> </table> <hr><h2>Member Function Documentation</h2> <a name="Ogre_1_1Win32Timera2" doxytag="Ogre::Win32Timer::getMicroseconds"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> unsigned long Ogre::Win32Timer::getMicroseconds </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Returns microseconds since initialisation or last reset. <p> <p> Reimplemented from <a class="el" href="classOgre_1_1Timer.html#Ogre_1_1Timera4">Ogre::Timer</a>. <p> Definition at line <a class="el" href="OgreWin32Timer_8cpp-source.html#l00051">51</a> of file <a class="el" href="OgreWin32Timer_8cpp-source.html">OgreWin32Timer.cpp</a>. <p> References <a class="el" href="OgreWin32Timer_8h-source.html#l00037">mFrequency</a>, and <a class="el" href="OgreWin32Timer_8h-source.html#l00036">mStartTime</a>. </td> </tr> </table> <a name="Ogre_1_1Win32Timera4" doxytag="Ogre::Win32Timer::getMicrosecondsCPU"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> unsigned long Ogre::Timer::getMicrosecondsCPU </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Returns microseconds since initialisation or last reset, only CPU time measured. <p> <p> Definition at line <a class="el" href="OgreTimer_8cpp-source.html#l00057">57</a> of file <a class="el" href="OgreTimer_8cpp-source.html">OgreTimer.cpp</a>. <p> References <a class="el" href="OgreTimer_8h-source.html#l00039">Ogre::Timer::zeroClock</a>. <p> Referenced by <a class="el" href="OgreTimer_8cpp-source.html#l00052">Ogre::Timer::getMicroseconds</a>(). </td> </tr> </table> <a name="Ogre_1_1Win32Timera1" doxytag="Ogre::Win32Timer::getMilliseconds"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> unsigned long Ogre::Win32Timer::getMilliseconds </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Returns milliseconds since initialisation or last reset. <p> <p> Reimplemented from <a class="el" href="classOgre_1_1Timer.html#Ogre_1_1Timera2">Ogre::Timer</a>. <p> Definition at line <a class="el" href="OgreWin32Timer_8cpp-source.html#l00036">36</a> of file <a class="el" href="OgreWin32Timer_8cpp-source.html">OgreWin32Timer.cpp</a>. <p> References <a class="el" href="OgreWin32Timer_8h-source.html#l00037">mFrequency</a>, and <a class="el" href="OgreWin32Timer_8h-source.html#l00036">mStartTime</a>. </td> </tr> </table> <a name="Ogre_1_1Win32Timera3" doxytag="Ogre::Win32Timer::getMillisecondsCPU"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> unsigned long Ogre::Timer::getMillisecondsCPU </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual, inherited]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Returns milliseconds since initialisation or last reset, only CPU time measured. <p> <p> Definition at line <a class="el" href="OgreTimer_8cpp-source.html#l00046">46</a> of file <a class="el" href="OgreTimer_8cpp-source.html">OgreTimer.cpp</a>. <p> References <a class="el" href="OgreTimer_8h-source.html#l00039">Ogre::Timer::zeroClock</a>. <p> Referenced by <a class="el" href="OgreTimer_8cpp-source.html#l00041">Ogre::Timer::getMilliseconds</a>(). </td> </tr> </table> <a name="Ogre_1_1Win32Timera0" doxytag="Ogre::Win32Timer::reset"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Ogre::Win32Timer::reset </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Resets timer. <p> <p> Reimplemented from <a class="el" href="classOgre_1_1Timer.html#Ogre_1_1Timera1">Ogre::Timer</a>. <p> Definition at line <a class="el" href="OgreWin32Timer_8cpp-source.html#l00029">29</a> of file <a class="el" href="OgreWin32Timer_8cpp-source.html">OgreWin32Timer.cpp</a>. <p> References <a class="el" href="OgreWin32Timer_8h-source.html#l00037">mFrequency</a>, and <a class="el" href="OgreWin32Timer_8h-source.html#l00036">mStartTime</a>. </td> </tr> </table> <hr><h2>Member Data Documentation</h2> <a name="Ogre_1_1Win32Timero1" doxytag="Ogre::Win32Timer::mFrequency"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> LARGE_INTEGER Ogre::Win32Timer::mFrequency<code> [private]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="OgreWin32Timer_8h-source.html#l00037">37</a> of file <a class="el" href="OgreWin32Timer_8h-source.html">OgreWin32Timer.h</a>. <p> Referenced by <a class="el" href="OgreWin32Timer_8cpp-source.html#l00051">getMicroseconds</a>(), <a class="el" href="OgreWin32Timer_8cpp-source.html#l00036">getMilliseconds</a>(), and <a class="el" href="OgreWin32Timer_8cpp-source.html#l00029">reset</a>(). </td> </tr> </table> <a name="Ogre_1_1Win32Timero0" doxytag="Ogre::Win32Timer::mStartTime"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> LARGE_INTEGER Ogre::Win32Timer::mStartTime<code> [private]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="OgreWin32Timer_8h-source.html#l00036">36</a> of file <a class="el" href="OgreWin32Timer_8h-source.html">OgreWin32Timer.h</a>. <p> Referenced by <a class="el" href="OgreWin32Timer_8cpp-source.html#l00051">getMicroseconds</a>(), <a class="el" href="OgreWin32Timer_8cpp-source.html#l00036">getMilliseconds</a>(), and <a class="el" href="OgreWin32Timer_8cpp-source.html#l00029">reset</a>(). </td> </tr> </table> <a name="Ogre_1_1Win32Timern0" doxytag="Ogre::Win32Timer::zeroClock"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> clock_t Ogre::Timer::zeroClock<code> [protected, inherited]</code> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Definition at line <a class="el" href="OgreTimer_8h-source.html#l00039">39</a> of file <a class="el" href="OgreTimer_8h-source.html">OgreTimer.h</a>. <p> Referenced by <a class="el" href="OgreTimer_8cpp-source.html#l00057">Ogre::Timer::getMicrosecondsCPU</a>(), <a class="el" href="OgreTimer_8cpp-source.html#l00046">Ogre::Timer::getMillisecondsCPU</a>(), and <a class="el" href="OgreTimer_8cpp-source.html#l00036">Ogre::Timer::reset</a>(). </td> </tr> </table> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="OgreWin32Timer_8h-source.html">OgreWin32Timer.h</a><li><a class="el" href="OgreWin32Timer_8cpp-source.html">OgreWin32Timer.cpp</a></ul> <p> Copyright © 2002-2003 by The OGRE Team<br /> Last modified Wed Jan 21 00:21:25 2004 </p> </body> </html>