1 | <html> |
---|
2 | <head> |
---|
3 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
---|
4 | <title>Class template microsec_clock</title> |
---|
5 | <link rel="stylesheet" href="boostbook.css" type="text/css"> |
---|
6 | <meta name="generator" content="DocBook XSL Stylesheets V1.69.1"> |
---|
7 | <link rel="start" href="index.html" title="The Boost C++ Libraries"> |
---|
8 | <link rel="up" href="date_time/doxy.html#id2520303" title="Header <boost/date_time/microsec_time_clock.hpp>"> |
---|
9 | <link rel="prev" href="acst_dst_trait.html" title="Struct template acst_dst_trait"> |
---|
10 | <link rel="next" href="id2483937.html" title="Type ymd_order_spec"> |
---|
11 | </head> |
---|
12 | <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> |
---|
13 | <table cellpadding="2" width="100%"> |
---|
14 | <td valign="top"><img alt="boost.png (6897 bytes)" width="277" height="86" src="../../boost.png"></td> |
---|
15 | <td align="center"><a href="../../index.htm">Home</a></td> |
---|
16 | <td align="center"><a href="../../libs/libraries.htm">Libraries</a></td> |
---|
17 | <td align="center"><a href="../../people/people.htm">People</a></td> |
---|
18 | <td align="center"><a href="../../more/faq.htm">FAQ</a></td> |
---|
19 | <td align="center"><a href="../../more/index.htm">More</a></td> |
---|
20 | </table> |
---|
21 | <hr> |
---|
22 | <div class="spirit-nav"> |
---|
23 | <a accesskey="p" href="acst_dst_trait.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2520303"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="id2483937.html"><img src="images/next.png" alt="Next"></a> |
---|
24 | </div> |
---|
25 | <div class="refentry" lang="en"> |
---|
26 | <a name="microsec_clock"></a><div class="titlepage"></div> |
---|
27 | <div class="refnamediv"> |
---|
28 | <h2><span class="refentrytitle">Class template microsec_clock</span></h2> |
---|
29 | <p>boost::date_time::microsec_clock — A clock providing microsecond level resolution. </p> |
---|
30 | </div> |
---|
31 | <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2> |
---|
32 | <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> time_type> |
---|
33 | <span class="bold"><strong>class</strong></span> microsec_clock { |
---|
34 | <span class="bold"><strong>public</strong></span>: |
---|
35 | <span class="emphasis"><em>// types</em></span> |
---|
36 | <span class="bold"><strong>typedef</strong></span> time_type::date_type date_type; |
---|
37 | <span class="bold"><strong>typedef</strong></span> time_type::time_duration_type time_duration_type; |
---|
38 | <span class="bold"><strong>typedef</strong></span> time_duration_type::rep_type resolution_traits_type; |
---|
39 | |
---|
40 | <span class="emphasis"><em>// <a href="microsec_clock.html#id2479179-bb">public static functions</a></em></span> |
---|
41 | <span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> time_zone_type> |
---|
42 | <span class="type">time_type</span> <a href="microsec_clock.html#id2479184-bb">local_time</a>(shared_ptr< time_zone_type >) ; |
---|
43 | <span class="type">time_type</span> <a href="microsec_clock.html#id2465546-bb">local_time</a>() ; |
---|
44 | <span class="type">time_type</span> <a href="microsec_clock.html#id2465563-bb">universal_time</a>() ; |
---|
45 | |
---|
46 | <span class="emphasis"><em>// <a href="microsec_clock.html#id2465582-bb">private static functions</a></em></span> |
---|
47 | <span class="type">time_type</span> <a href="microsec_clock.html#id2465586-bb">create_time</a>(TZ_FOR_CREATE) ; |
---|
48 | <span class="type">time_type</span> <a href="microsec_clock.html#id2433422-bb">local_time</a>() ; |
---|
49 | <span class="type">time_type</span> <a href="microsec_clock.html#id2433439-bb">universal_time</a>() ; |
---|
50 | <span class="type">time_type</span> <a href="microsec_clock.html#id2499124-bb">create_time</a>(FILETIME &, TZ_FOR_CREATE) ; |
---|
51 | };</pre></div> |
---|
52 | <div class="refsect1" lang="en"> |
---|
53 | <a name="id2645362"></a><h2>Description</h2> |
---|
54 | <p>A high precision clock that measures the local time at a resolution up to microseconds and adjusts to the resolution of the time system. For example, for the a library configuration with nano second resolution, the last 3 places of the fractional seconds will always be 000 since there are 1000 nano-seconds in a micro second. </p> |
---|
55 | <div class="refsect2" lang="en"> |
---|
56 | <a name="id2645374"></a><h3> |
---|
57 | <a name="id2479179-bb"></a><code class="computeroutput">microsec_clock</code> public static functions</h3> |
---|
58 | <div class="orderedlist"><ol type="1"> |
---|
59 | <li><pre class="literallayout"><span class="bold"><strong>template</strong></span><<span class="bold"><strong>typename</strong></span> time_zone_type> |
---|
60 | <span class="type">time_type</span> <a name="id2479184-bb"></a>local_time(shared_ptr< time_zone_type > tz_ptr) ;</pre></li> |
---|
61 | <li><pre class="literallayout"><span class="type">time_type</span> <a name="id2465546-bb"></a>local_time() ;</pre></li> |
---|
62 | <li><pre class="literallayout"><span class="type">time_type</span> <a name="id2465563-bb"></a>universal_time() ;</pre></li> |
---|
63 | </ol></div> |
---|
64 | </div> |
---|
65 | <div class="refsect2" lang="en"> |
---|
66 | <a name="id2645458"></a><h3> |
---|
67 | <a name="id2465582-bb"></a><code class="computeroutput">microsec_clock</code> private static functions</h3> |
---|
68 | <div class="orderedlist"><ol type="1"> |
---|
69 | <li><pre class="literallayout"><span class="type">time_type</span> <a name="id2465586-bb"></a>create_time(TZ_FOR_CREATE tz) ;</pre></li> |
---|
70 | <li><pre class="literallayout"><span class="type">time_type</span> <a name="id2433422-bb"></a>local_time() ;</pre></li> |
---|
71 | <li><pre class="literallayout"><span class="type">time_type</span> <a name="id2433439-bb"></a>universal_time() ;</pre></li> |
---|
72 | <li><pre class="literallayout"><span class="type">time_type</span> <a name="id2499124-bb"></a>create_time(FILETIME & ft, TZ_FOR_CREATE tz) ;</pre></li> |
---|
73 | </ol></div> |
---|
74 | </div> |
---|
75 | </div> |
---|
76 | </div> |
---|
77 | <table width="100%"><tr> |
---|
78 | <td align="left"></td> |
---|
79 | <td align="right"><small>Copyright © 2001-2005 CrystalClear Software, Inc</small></td> |
---|
80 | </tr></table> |
---|
81 | <hr> |
---|
82 | <div class="spirit-nav"> |
---|
83 | <a accesskey="p" href="acst_dst_trait.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="date_time/doxy.html#id2520303"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="id2483937.html"><img src="images/next.png" alt="Next"></a> |
---|
84 | </div> |
---|
85 | </body> |
---|
86 | </html> |
---|