-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_timing.html
132 lines (130 loc) · 7.03 KB
/
_timing.html
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
<!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.13.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Nebula: Timing</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="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="cookie.js"></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" />
<link href="custom.css" rel="stylesheet" type="text/css"/>
<link href="custom_dark_theme.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">Nebula
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.13.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search',true);
$(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:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function(){initNavTree('_timing.html',''); initResizable(true); });
/* @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">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div><div class="header">
<div class="headertitle"><div class="title">Timing</div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><h1><a class="anchor" id="NebulaTimingSystem"></a>
The Timing Library</h1>
<p>The <a class="el" href="namespace_nebula.html">Nebula</a> <a class="el" href="namespace_timing.html">Timing</a> subsystem offers classes and servies for measuring elapsed time, and working with the calendar time (days, weeks, month, years).</p>
<h2><a class="anchor" id="NebulaTimingBasics"></a>
Timing Subsystem Basics</h2>
<ul>
<li><a class="el" href="namespace_timing.html#a8ad3705944b3f8824d642c4424ab3999" title="the time datatype">Timing::Time</a> represents a double-precision floating point number and contains a time value in seconds.</li>
<li><a class="el" href="namespace_timing.html#a1884fd8969a4a431040692fbcf9f5f1e" title="the tick datatype (one tick == 1 millisecond)">Timing::Tick</a> represent an integer number contains a time value in milli-seconds (1/1000sec).</li>
<li>To convert between the 2 data types, use the global <a class="el" href="namespace_timing.html#ae00b365e7a8436ebb12705bd633b8234" title="Convert ticks to seconds.">Timing::TicksToSeconds()</a> and <a class="el" href="namespace_timing.html#a0e6bf8ecbaa0f52daff8ae2e0676eedf" title="Convert seconds to ticks.">Timing::SecondsToTicks()</a> functions.</li>
<li>To let a thread sleep for a specific amount of time, use the <a class="el" href="namespace_timing.html#a60ecc2f2142ee97d39169048e5cf29a9" title="Put current thread to sleep for specified amount of seconds.">Timing::Sleep()</a> method.</li>
<li>Use <a class="el" href="namespace_timing.html#a60ecc2f2142ee97d39169048e5cf29a9" title="Put current thread to sleep for specified amount of seconds.">Timing::Sleep</a>(0.0) to give up the current thread time slice.</li>
<li>Use the <a class="el" href="class_timing_1_1_timer.html" title="A timer object is the most basic object for time measurement.">Timing::Timer</a> class for measuring elapsed time. <a class="el" href="class_timing_1_1_timer.html" title="A timer object is the most basic object for time measurement.">Timing::Timer</a> is also "fast enough" to be used as a profiler around a block of code.</li>
<li>Use the <a class="el" href="class_timing_1_1_calendar_time.html" title="Allows to obtain the current point in time as year, month, day, etc... down to milliseconds,...">Timing::CalendarTime</a> class if you need to query the current wall-clock time and date.</li>
<li>The <a class="el" href="class_timing_1_1_calendar_time.html" title="Allows to obtain the current point in time as year, month, day, etc... down to milliseconds,...">Timing::CalendarTime</a> class also offers method to convert between calendar time and <a class="el" href="class_i_o_1_1_file_time.html" title="Defines a file-access timestamp.">IO::FileTime</a>. </li>
</ul>
</div></div><!-- contents -->
</div><!-- PageDoc -->
</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="foundation.html">Foundation Libraries</a></li>
<li class="footer">
Generated on Tue Jan 28 2025 22:43:09 for Nebula. Dark theme by <a href="http://majerle.eu" target="_new">Tilen Majerle</a>. All rights reserved.
</li>
</ul>
</div>
<script src="custom.js"></script>
</body>
</html>