1<html> 2 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<meta name="GENERATOR" content="Microsoft FrontPage 5.0"> 6<meta name="ProgId" content="FrontPage.Editor.Document"> 7<title>Boost Timer Library</title> 8<style type="text/css"> 9 ins {background-color:#A0FFA0} 10 del {background-color:#FFA0A0} 11 body 12 { 13 font-family: sans-serif; 14 max-width : 8.5in; 15 margin: 1em; 16 } 17</style> 18</head> 19 20<body> 21<table border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="750"> 22 <tr> 23 <td width="300"> 24<a href="../../../index.htm"> 25<img src="../../../boost.png" alt="boost.png (6897 bytes)" align="middle" width="300" height="86" border="0"></a></td> 26 <td align="middle" width="430"> 27 <font size="7">Timer Library<br> 28 Version 2</font> 29 </td> 30 </tr> 31</table> 32 33<table border="0" cellpadding="5" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" bgcolor="#D7EEFF" width="100%"> 34 <tr> 35 <td><a href="index.html">Timer Home</a> 36 <a href="cpu_timers.html">CPU timers</a> 37 <a href="original_timer.html">Original timers</a> 38 </td> 39 </tr> 40</table> 41 42<p>"How long does my C++ code take to run?"<p>The Boost Timer library 43answers that question and does so portably, with as little as one #include and one 44additional line of code.<p>The Boost Timer library has two distinct sets of 45components:<ul> 46 <li>If you are new to the library, please go directly to the version 2 47 <a href="cpu_timers.html">CPU timers</a> page.</li> 48 <li>If you are interested in 49the original library, now deprecated, read on below.</li> 50 </ul> 51 <h2> 52 <a href="cpu_timers.html">CPU timers</a></h2> 53<p>These version 2 components conform to current Boost practice:</p> 54<ul> 55 <li>The interfaces and their semantics are the same across all platforms.</li> 56 <li>The internal implementation uses operating system specific APIs to achieve 57 higher precision and supply functionality not otherwise available. </li> 58 <li>The headers live in a sub-directory, <code><boost/timer/...></code>.</li> 59 <li>The content is in a sub-namespace, <code>boost::timer</code>.</li> 60</ul> 61<h2 dir="ltr"> 62 <a href="original_timer.html">Original timers</a></h2> 63<p>These version 1 components are deprecated. They date from the earliest days 64of Boost and do not conform to current Boost practice:</p> 65<ul> 66 <li>The interfaces are the same across all platforms, but the semantics differ 67 according to platform. Wall-clock time is measured on Windows, while CPU time 68 is measured on POSIX-like systems.</li> 69 <li>The internal implementation uses only C/C++ standard library functions, so 70 cannot supply desirable precision and functionality.</li> 71 <li>The headers live in the main Boost header directory.</li> 72 <li>The content are in namespace <code>boost</code>.</li> 73</ul> 74<hr> 75<p><font size="2">Revised: 76<!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %B %Y" startspan -->07 October 2011<!--webbot bot="Timestamp" endspan i-checksum="32191" --></font></p> 77 78<p><font size="2">� Copyright Beman Dawes 2001, 2011</font></p> 79 80<p><font size="2">Distributed under the Boost Software License, Version 1.0. See 81</font> 82<a href="http://www.boost.org/LICENSE_1_0.txt"><font size="2">www.boost.org/LICENSE_1_0.txt</font></a></p> 83 84 85</body> 86</html>