1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User's Guide: QwtSystemClock Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Qwt User's Guide
 <span id="projectnumber">6.1.4</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_qwt_system_clock.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="class_qwt_system_clock-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">QwtSystemClock Class Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><a class="el" href="class_qwt_system_clock.html" title="QwtSystemClock provides high resolution clock time functions. ">QwtSystemClock</a> provides high resolution clock time functions.
<a href="class_qwt_system_clock.html#details">More...</a></p>
<p><code>#include <<a class="el" href="qwt__system__clock_8h_source.html">qwt_system_clock.h</a>></code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a384e20d6049376575bf28306154854fd"><td class="memItemLeft" align="right" valign="top"><a id="a384e20d6049376575bf28306154854fd"></a>
 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_system_clock.html#a384e20d6049376575bf28306154854fd">QwtSystemClock</a> ()</td></tr>
<tr class="memdesc:a384e20d6049376575bf28306154854fd"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a null clock object. <br /></td></tr>
<tr class="separator:a384e20d6049376575bf28306154854fd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a79a46a34a317543a08a8424a333b9ee3"><td class="memItemLeft" align="right" valign="top"><a id="a79a46a34a317543a08a8424a333b9ee3"></a>
virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_system_clock.html#a79a46a34a317543a08a8424a333b9ee3">~QwtSystemClock</a> ()</td></tr>
<tr class="memdesc:a79a46a34a317543a08a8424a333b9ee3"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a79a46a34a317543a08a8424a333b9ee3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7cde59f783269c5f3542ec93f450f5bd"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_system_clock.html#a7cde59f783269c5f3542ec93f450f5bd">isNull</a> () const</td></tr>
<tr class="separator:a7cde59f783269c5f3542ec93f450f5bd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3408bd55b49582f7847865aacc7beb37"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_system_clock.html#a3408bd55b49582f7847865aacc7beb37">start</a> ()</td></tr>
<tr class="separator:a3408bd55b49582f7847865aacc7beb37"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6be327dd133c1d7ecccfb95050eef7b9"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_system_clock.html#a6be327dd133c1d7ecccfb95050eef7b9">restart</a> ()</td></tr>
<tr class="separator:a6be327dd133c1d7ecccfb95050eef7b9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6d373715eb0fac098f2f02ce42a660c9"><td class="memItemLeft" align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_system_clock.html#a6d373715eb0fac098f2f02ce42a660c9">elapsed</a> () const</td></tr>
<tr class="separator:a6d373715eb0fac098f2f02ce42a660c9"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_qwt_system_clock.html" title="QwtSystemClock provides high resolution clock time functions. ">QwtSystemClock</a> provides high resolution clock time functions. </p>
<p>Sometimes the resolution offered by QTime ( millisecond ) is not accurate enough for implementing time measurements ( f.e. sampling ). <a class="el" href="class_qwt_system_clock.html" title="QwtSystemClock provides high resolution clock time functions. ">QwtSystemClock</a> offers a subset of the QTime functionality using higher resolution timers ( if possible ).</p>
<p>Precision and time intervals are multiples of milliseconds (ms).</p>
<p>( <a class="el" href="class_qwt_system_clock.html" title="QwtSystemClock provides high resolution clock time functions. ">QwtSystemClock</a> is obsolete since Qt 4.8 as QElapsedTimer offers the same precision )</p>
<dl class="section note"><dt>Note</dt><dd>The implementation uses high-resolution performance counter on Windows, mach_absolute_time() on the Mac or POSIX timers on other systems. If none is available it falls back on QTimer. </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a6d373715eb0fac098f2f02ce42a660c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d373715eb0fac098f2f02ce42a660c9">◆ </a></span>elapsed()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double QwtSystemClock::elapsed </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Number of milliseconds that have elapsed since the last time <a class="el" href="class_qwt_system_clock.html#a3408bd55b49582f7847865aacc7beb37">start()</a> or <a class="el" href="class_qwt_system_clock.html#a6be327dd133c1d7ecccfb95050eef7b9">restart()</a> was called or 0.0 for null clocks. </dd></dl>
</div>
</div>
<a id="a7cde59f783269c5f3542ec93f450f5bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7cde59f783269c5f3542ec93f450f5bd">◆ </a></span>isNull()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool QwtSystemClock::isNull </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>true if the clock has never been started. </dd></dl>
</div>
</div>
<a id="a6be327dd133c1d7ecccfb95050eef7b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6be327dd133c1d7ecccfb95050eef7b9">◆ </a></span>restart()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">double QwtSystemClock::restart </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Set the start time to the current time </p><dl class="section return"><dt>Returns</dt><dd>Time, that is elapsed since the previous start time. </dd></dl>
</div>
</div>
<a id="a3408bd55b49582f7847865aacc7beb37"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3408bd55b49582f7847865aacc7beb37">◆ </a></span>start()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void QwtSystemClock::start </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Sets the start time to the current time. </p>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="class_qwt_system_clock.html">QwtSystemClock</a></li>
<li class="footer">Generated by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
</ul>
</div>
</body>
</html>
|