<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>glibmm 2.4: Glib::Timer Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#ffffff"> <table border="0" width="100%"> <tr> <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td> <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td> </tr> </table> <center> <a class="qindex" href="../../../../gtkmm-2.4/docs/index.html">Main Page</a> <a href="../../../../gtkmm-2.4/docs/reference/html/group__Widgets.html">Widgets</a> <a class="qindex" href="namespaces.html">glibmm Namespaces</a> <a href="../../../../gtkmm-2.4/docs/tutorial/html/index.html"> Book</a> </center> <hr width="100%"/> <!-- begin main content --> <div id="content"> <!-- Generated by Doxygen 1.5.3 --> <div class="nav"> <a class="el" href="namespaceGlib.html">Glib</a>::<a class="el" href="classGlib_1_1Timer.html">Timer</a></div> <h1>Glib::Timer Class Reference</h1><!-- doxytag: class="Glib::Timer" -->Portable stop watch interface. <a href="#_details">More...</a> <p> <p> <a href="classGlib_1_1Timer-members.html">List of all members.</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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Timer.html#1ff80cf54560a168274fa69be8f0c280">Timer</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a new timer. <a href="#1ff80cf54560a168274fa69be8f0c280"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Timer.html#261ce5699feab81230a37fd6f2f80fb4">~Timer</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Timer.html#05067986b126f147111357ff7693aea6">start</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Timer.html#3c54e67ddbc01f39b843b1df45aa3c17">stop</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Timer.html#82d5eef4159c73d8412b9e927073625b">reset</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Timer.html#a1cb1f3f0105ad140122e661b4c74b6a">elapsed</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the elapsed time. <a href="#a1cb1f3f0105ad140122e661b4c74b6a"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1Timer.html#c627928a24ff72cce9779675606aba3d">elapsed</a> (unsigned long& microseconds) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the elapsed time. <a href="#c627928a24ff72cce9779675606aba3d"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Portable stop watch interface. <p> This resembles a convient and portable timer with microseconds resolution. <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="1ff80cf54560a168274fa69be8f0c280"></a><!-- doxytag: member="Glib::Timer::Timer" ref="1ff80cf54560a168274fa69be8f0c280" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Glib::Timer::Timer </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> Create a new timer. <p> Also starts timing by calling <a class="el" href="classGlib_1_1Timer.html#05067986b126f147111357ff7693aea6">start()</a> implicitly. </div> </div><p> <a class="anchor" name="261ce5699feab81230a37fd6f2f80fb4"></a><!-- doxytag: member="Glib::Timer::~Timer" ref="261ce5699feab81230a37fd6f2f80fb4" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Glib::Timer::~Timer </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="05067986b126f147111357ff7693aea6"></a><!-- doxytag: member="Glib::Timer::start" ref="05067986b126f147111357ff7693aea6" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Glib::Timer::start </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="3c54e67ddbc01f39b843b1df45aa3c17"></a><!-- doxytag: member="Glib::Timer::stop" ref="3c54e67ddbc01f39b843b1df45aa3c17" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Glib::Timer::stop </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="82d5eef4159c73d8412b9e927073625b"></a><!-- doxytag: member="Glib::Timer::reset" ref="82d5eef4159c73d8412b9e927073625b" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Glib::Timer::reset </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="a1cb1f3f0105ad140122e661b4c74b6a"></a><!-- doxytag: member="Glib::Timer::elapsed" ref="a1cb1f3f0105ad140122e661b4c74b6a" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double Glib::Timer::elapsed </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Get the elapsed time. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The value in seconds. </dd></dl> </div> </div><p> <a class="anchor" name="c627928a24ff72cce9779675606aba3d"></a><!-- doxytag: member="Glib::Timer::elapsed" ref="c627928a24ff72cce9779675606aba3d" args="(unsigned long &microseconds) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double Glib::Timer::elapsed </td> <td>(</td> <td class="paramtype">unsigned long & </td> <td class="paramname"> <em>microseconds</em> </td> <td> ) </td> <td width="100%"> const</td> </tr> </table> </div> <div class="memdoc"> <p> Get the elapsed time. <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The value in seconds. Also fills <code>microseconds</code> with the corresponding µs value. </dd></dl> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="timer_8h.html">timer.h</a></ul> </div> <!-- end main content --> <hr><address><small> Generated for glibmm 2.4 by <a href="http://www.doxygen.org/index.html"> Doxygen</a> 1.5.3 © 1997-2001</small></address> </body> </html>