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

📄 timestamp_8hh-source.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: TimeStamp.hh Source File</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="dir_000001.html">include</a>&nbsp;/&nbsp;<a class="el" href="dir_000002.html">log4cpp</a></div><h1>TimeStamp.hh</h1><a href="TimeStamp_8hh.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*</span>00002 <span class="comment"> * TimeStamp.hh</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved.</span>00005 <span class="comment"> * Copyright 2001, Bastiaan Bakker. All rights reserved.</span>00006 <span class="comment"> *</span>00007 <span class="comment"> * See the COPYING file for the terms of usage and distribution.</span>00008 <span class="comment"> */</span>00009 00010 <span class="preprocessor">#ifndef _LOG4CPP_TIMESTAMP_HH</span>00011 <span class="preprocessor"></span><span class="preprocessor">#define _LOG4CPP_TIMESTAMP_HH</span>00012 <span class="preprocessor"></span>00013 <span class="preprocessor">#include &lt;<a class="code" href="Portability_8hh.html">log4cpp/Portability.hh</a>&gt;</span>00014 00015 <span class="keyword">namespace </span>log4cpp {00016 <a name="l00020"></a><a class="code" href="classlog4cpp_1_1TimeStamp.html">00020</a>     <span class="keyword">class </span><a class="code" href="Export_8hh.html#a0">LOG4CPP_EXPORT</a> TimeStamp {00021         <span class="keyword">public</span>:00025         TimeStamp();00026 00031         TimeStamp(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> seconds, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> microSeconds = 0);00032 <a name="l00036"></a><a class="code" href="classlog4cpp_1_1TimeStamp.html#a2">00036</a>         <span class="keyword">inline</span> <span class="keywordtype">int</span> getSeconds()<span class="keyword"> const </span>{00037             <span class="keywordflow">return</span> _seconds;00038         };00039 <a name="l00044"></a><a class="code" href="classlog4cpp_1_1TimeStamp.html#a3">00044</a>         <span class="keyword">inline</span> <span class="keywordtype">int</span> getMilliSeconds()<span class="keyword"> const </span>{00045             <span class="keywordflow">return</span> _microSeconds / 1000;00046         };00047 <a name="l00053"></a><a class="code" href="classlog4cpp_1_1TimeStamp.html#a4">00053</a>         <span class="keyword">inline</span> <span class="keywordtype">int</span> getMicroSeconds()<span class="keyword"> const </span>{00054             <span class="keywordflow">return</span> _microSeconds;00055         };00056 <a name="l00061"></a><a class="code" href="classlog4cpp_1_1TimeStamp.html#e0">00061</a>         <span class="keyword">static</span> <span class="keyword">inline</span> <span class="keyword">const</span> TimeStamp&amp; getStartTime() {00062             <span class="keywordflow">return</span> _startStamp;00063         };00064 00065         <span class="keyword">protected</span>:00066         <span class="keyword">static</span> TimeStamp _startStamp;00067 <a name="l00068"></a><a class="code" href="classlog4cpp_1_1TimeStamp.html#p0">00068</a>         <span class="keywordtype">int</span> _seconds;<a name="l00069"></a><a class="code" href="classlog4cpp_1_1TimeStamp.html#p1">00069</a>         <span class="keywordtype">int</span> _microSeconds;00070     };00071 }00072 00073 <span class="preprocessor">#endif // _LOG4CPP_TIMESTAMP_HH</span>00074 <span class="preprocessor"></span></pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Jul 29 14:07:33 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 + -