⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classlog4cpp_1_1timestamp.html

📁 log4cpp 的参考文档, 一个非常好用的C++ log 类库
💻 HTML
字号:
<!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>log4cpp: log4cpp::TimeStamp Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.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="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</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">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div><div class="nav"><a class="el" href="namespacelog4cpp.html">log4cpp</a>::<a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a></div><h1>log4cpp::TimeStamp Class Reference</h1>A simple <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a> abstraction.  <a href="#_details">More...</a><p><code>#include &lt;<a class="el" href="TimeStamp_8hh-source.html">TimeStamp.hh</a>&gt;</code><p>Collaboration diagram for log4cpp::TimeStamp:<p><center><img src="classlog4cpp_1_1TimeStamp__coll__graph.png" border="0" usemap="#log4cpp_1_1TimeStamp__coll__map" alt="Collaboration graph"></center><center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classlog4cpp_1_1TimeStamp-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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1TimeStamp.html#a0">TimeStamp</a> ()</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a> representing 'now'.  <a href="#a0"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1TimeStamp.html#a1">TimeStamp</a> (unsigned int seconds, unsigned int microSeconds=0)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructs a <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a> representing the given offset since the epoch ( 00:00:00 1970/1/1 UTC).  <a href="#a1"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1TimeStamp.html#a2">getSeconds</a> () const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the 'seconds' part of the <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a>.  <a href="#a2"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1TimeStamp.html#a3">getMilliSeconds</a> () const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the 'subseconds' part of the <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a> in milliseconds, <a class="el" href="classlog4cpp_1_1TimeStamp.html#a3">getMilliSeconds()</a> == <a class="el" href="classlog4cpp_1_1TimeStamp.html#a4">getMicroSeconds()</a> / 1000.  <a href="#a3"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1TimeStamp.html#a4">getMicroSeconds</a> () const </td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the subsecond part of the <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a> in microseconds.  <a href="#a4"></a><br></td></tr><tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static const <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1TimeStamp.html#e0">getStartTime</a> ()</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns a <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a> representing the time at which the application started.  <a href="#e0"></a><br></td></tr><tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1TimeStamp.html#p0">_seconds</a></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1TimeStamp.html#p1">_microSeconds</a></td></tr><tr><td colspan="2"><br><h2>Static Protected Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1TimeStamp.html#t0">_startStamp</a></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>A simple <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a> abstraction. <p><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="a0" doxytag="log4cpp::TimeStamp::TimeStamp"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">log4cpp::TimeStamp::TimeStamp           </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>Constructs a <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a> representing 'now'. <p>    </td>  </tr></table><a class="anchor" name="a1" doxytag="log4cpp::TimeStamp::TimeStamp"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">log4cpp::TimeStamp::TimeStamp           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">unsigned int&nbsp;</td>          <td class="mdname" nowrap> <em>seconds</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>unsigned int&nbsp;</td>          <td class="mdname" nowrap> <em>microSeconds</em> = <code>0</code></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Constructs a <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a> representing the given offset since the epoch ( 00:00:00 1970/1/1 UTC). <p>    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="a4" doxytag="log4cpp::TimeStamp::getMicroSeconds"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int log4cpp::TimeStamp::getMicroSeconds           </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>Returns the subsecond part of the <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a> in microseconds. <p>The actual precision of this value depends on the platform and may be in the order of milliseconds rather than microseconds.     </td>  </tr></table><a class="anchor" name="a3" doxytag="log4cpp::TimeStamp::getMilliSeconds"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int log4cpp::TimeStamp::getMilliSeconds           </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>Returns the 'subseconds' part of the <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a> in milliseconds, <a class="el" href="classlog4cpp_1_1TimeStamp.html#a3">getMilliSeconds()</a> == <a class="el" href="classlog4cpp_1_1TimeStamp.html#a4">getMicroSeconds()</a> / 1000. <p>    </td>  </tr></table><a class="anchor" name="a2" doxytag="log4cpp::TimeStamp::getSeconds"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int log4cpp::TimeStamp::getSeconds           </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>Returns the 'seconds' part of the <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a>. <p>    </td>  </tr></table><a class="anchor" name="e0" doxytag="log4cpp::TimeStamp::getStartTime"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">static const <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a>&amp; log4cpp::TimeStamp::getStartTime           </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><code> [inline, static]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Returns a <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a> representing the time at which the application started. <p>    </td>  </tr></table><hr><h2>Member Data Documentation</h2><a class="anchor" name="p1" doxytag="log4cpp::TimeStamp::_microSeconds"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int <a class="el" href="classlog4cpp_1_1TimeStamp.html#p1">log4cpp::TimeStamp::_microSeconds</a><code> [protected]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><a class="anchor" name="p0" doxytag="log4cpp::TimeStamp::_seconds"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int <a class="el" href="classlog4cpp_1_1TimeStamp.html#p0">log4cpp::TimeStamp::_seconds</a><code> [protected]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><a class="anchor" name="t0" doxytag="log4cpp::TimeStamp::_startStamp"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">LOG4CPP_EXPORT <a class="el" href="classlog4cpp_1_1TimeStamp.html">TimeStamp</a> <a class="el" href="classlog4cpp_1_1TimeStamp.html#t0">log4cpp::TimeStamp::_startStamp</a><code> [static, protected]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="TimeStamp_8hh-source.html">TimeStamp.hh</a><li><a class="el" href="TimeStamp_8cpp.html">TimeStamp.cpp</a></ul><hr size="1"><address style="align: right;"><small>Generated on Fri Jul 29 14:12:53 2005 for log4cpp by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -