blob: 6c5ad79eee4db8aadab076d8cc4b1cde7f479819 (
plain)
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
|
<!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>
<title>CSFML - C binding of the Simple and Fast Multimedia Library</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<!--<link rel='stylesheet' type='text/css' href="http://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/>-->
<link rel="stylesheet" type="text/css" href="doxygen.css" title="default" media="screen,print" />
</head>
<body>
<div id="banner-container">
<div id="banner">
<span id="sfml">CSFML</span>
</div>
</div>
<div id="content">
<!-- Generated by Doxygen 1.8.2 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.htm"><span>Main Page</span></a></li>
<li><a href="annotated.htm"><span>Data Structures</span></a></li>
<li class="current"><a href="files.htm"><span>Files</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.htm"><span>File List</span></a></li>
<li><a href="globals.htm"><span>Globals</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_6a66b7969672f1da69f458a57d2c97f9.htm">include</a></li><li class="navelem"><a class="el" href="dir_8cc999c03ab8fdf40558b1f21f869c3e.htm">SFML</a></li><li class="navelem"><a class="el" href="dir_c6605309d84130eeaba73c4c96d7b461.htm">System</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> |
<a href="#func-members">Functions</a> |
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">Time.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include <<a class="el" href="System_2Export_8h_source.htm">SFML/System/Export.h</a>></code><br/>
</div>
<p><a href="Time_8h_source.htm">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="structsfTime.htm">sfTime</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Represents a time value. <a href="structsfTime.htm#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a4eae76694e0dc04bad76472f5512a83e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> float </td><td class="memItemRight" valign="bottom"><a class="el" href="Time_8h.htm#a4eae76694e0dc04bad76472f5512a83e">sfTime_asSeconds</a> (<a class="el" href="structsfTime.htm">sfTime</a> time)</td></tr>
<tr class="memdesc:a4eae76694e0dc04bad76472f5512a83e"><td class="mdescLeft"> </td><td class="mdescRight">Return a time value as a number of seconds. <a href="#a4eae76694e0dc04bad76472f5512a83e"></a><br/></td></tr>
<tr class="separator:a4eae76694e0dc04bad76472f5512a83e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae18c160c0513c04ff6f3677add1c2041"><td class="memItemLeft" align="right" valign="top"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> <a class="el" href="Config_8h.htm#a3f8af9d41c469af1e1f78a15bd42cc6e">sfInt32</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="Time_8h.htm#ae18c160c0513c04ff6f3677add1c2041">sfTime_asMilliseconds</a> (<a class="el" href="structsfTime.htm">sfTime</a> time)</td></tr>
<tr class="memdesc:ae18c160c0513c04ff6f3677add1c2041"><td class="mdescLeft"> </td><td class="mdescRight">Return a time value as a number of milliseconds. <a href="#ae18c160c0513c04ff6f3677add1c2041"></a><br/></td></tr>
<tr class="separator:ae18c160c0513c04ff6f3677add1c2041"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a182b22a1ee5a9bd428d2d68975a2fc7c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> <a class="el" href="Config_8h.htm#a10b5f72059b7444ded9ad782274361af">sfInt64</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="Time_8h.htm#a182b22a1ee5a9bd428d2d68975a2fc7c">sfTime_asMicroseconds</a> (<a class="el" href="structsfTime.htm">sfTime</a> time)</td></tr>
<tr class="memdesc:a182b22a1ee5a9bd428d2d68975a2fc7c"><td class="mdescLeft"> </td><td class="mdescRight">Return a time value as a number of microseconds. <a href="#a182b22a1ee5a9bd428d2d68975a2fc7c"></a><br/></td></tr>
<tr class="separator:a182b22a1ee5a9bd428d2d68975a2fc7c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0f8397f102ce9f6519abb273c980edb3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> <a class="el" href="structsfTime.htm">sfTime</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="Time_8h.htm#a0f8397f102ce9f6519abb273c980edb3">sfSeconds</a> (float amount)</td></tr>
<tr class="memdesc:a0f8397f102ce9f6519abb273c980edb3"><td class="mdescLeft"> </td><td class="mdescRight">Construct a time value from a number of seconds. <a href="#a0f8397f102ce9f6519abb273c980edb3"></a><br/></td></tr>
<tr class="separator:a0f8397f102ce9f6519abb273c980edb3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1261192be4f54d0d1f86d77c546d0909"><td class="memItemLeft" align="right" valign="top"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> <a class="el" href="structsfTime.htm">sfTime</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="Time_8h.htm#a1261192be4f54d0d1f86d77c546d0909">sfMilliseconds</a> (<a class="el" href="Config_8h.htm#a3f8af9d41c469af1e1f78a15bd42cc6e">sfInt32</a> amount)</td></tr>
<tr class="memdesc:a1261192be4f54d0d1f86d77c546d0909"><td class="mdescLeft"> </td><td class="mdescRight">Construct a time value from a number of milliseconds. <a href="#a1261192be4f54d0d1f86d77c546d0909"></a><br/></td></tr>
<tr class="separator:a1261192be4f54d0d1f86d77c546d0909"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4a0f1f0993da5aa294d907c4541d1383"><td class="memItemLeft" align="right" valign="top"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> <a class="el" href="structsfTime.htm">sfTime</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="Time_8h.htm#a4a0f1f0993da5aa294d907c4541d1383">sfMicroseconds</a> (<a class="el" href="Config_8h.htm#a10b5f72059b7444ded9ad782274361af">sfInt64</a> amount)</td></tr>
<tr class="memdesc:a4a0f1f0993da5aa294d907c4541d1383"><td class="mdescLeft"> </td><td class="mdescRight">Construct a time value from a number of microseconds. <a href="#a4a0f1f0993da5aa294d907c4541d1383"></a><br/></td></tr>
<tr class="separator:a4a0f1f0993da5aa294d907c4541d1383"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a4bfaf4ff046dfbbfa6c900ec9b839b4d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> <a class="el" href="structsfTime.htm">sfTime</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="Time_8h.htm#a4bfaf4ff046dfbbfa6c900ec9b839b4d">sfTime_Zero</a></td></tr>
<tr class="memdesc:a4bfaf4ff046dfbbfa6c900ec9b839b4d"><td class="mdescLeft"> </td><td class="mdescRight">Predefined "zero" time value. <a href="#a4bfaf4ff046dfbbfa6c900ec9b839b4d"></a><br/></td></tr>
<tr class="separator:a4bfaf4ff046dfbbfa6c900ec9b839b4d"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a4a0f1f0993da5aa294d907c4541d1383"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> <a class="el" href="structsfTime.htm">sfTime</a> sfMicroseconds </td>
<td>(</td>
<td class="paramtype"><a class="el" href="Config_8h.htm#a10b5f72059b7444ded9ad782274361af">sfInt64</a> </td>
<td class="paramname"><em>amount</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Construct a time value from a number of microseconds. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">amount</td><td>Number of microseconds</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Time value constructed from the amount of microseconds </dd></dl>
</div>
</div>
<a class="anchor" id="a1261192be4f54d0d1f86d77c546d0909"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> <a class="el" href="structsfTime.htm">sfTime</a> sfMilliseconds </td>
<td>(</td>
<td class="paramtype"><a class="el" href="Config_8h.htm#a3f8af9d41c469af1e1f78a15bd42cc6e">sfInt32</a> </td>
<td class="paramname"><em>amount</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Construct a time value from a number of milliseconds. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">amount</td><td>Number of milliseconds</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Time value constructed from the amount of milliseconds </dd></dl>
</div>
</div>
<a class="anchor" id="a0f8397f102ce9f6519abb273c980edb3"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> <a class="el" href="structsfTime.htm">sfTime</a> sfSeconds </td>
<td>(</td>
<td class="paramtype">float </td>
<td class="paramname"><em>amount</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Construct a time value from a number of seconds. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">amount</td><td>Number of seconds</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Time value constructed from the amount of seconds </dd></dl>
</div>
</div>
<a class="anchor" id="a182b22a1ee5a9bd428d2d68975a2fc7c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> <a class="el" href="Config_8h.htm#a10b5f72059b7444ded9ad782274361af">sfInt64</a> sfTime_asMicroseconds </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structsfTime.htm">sfTime</a> </td>
<td class="paramname"><em>time</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return a time value as a number of microseconds. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">time</td><td>Time value</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Time in microseconds </dd></dl>
</div>
</div>
<a class="anchor" id="ae18c160c0513c04ff6f3677add1c2041"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> <a class="el" href="Config_8h.htm#a3f8af9d41c469af1e1f78a15bd42cc6e">sfInt32</a> sfTime_asMilliseconds </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structsfTime.htm">sfTime</a> </td>
<td class="paramname"><em>time</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return a time value as a number of milliseconds. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">time</td><td>Time value</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Time in milliseconds </dd></dl>
</div>
</div>
<a class="anchor" id="a4eae76694e0dc04bad76472f5512a83e"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> float sfTime_asSeconds </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structsfTime.htm">sfTime</a> </td>
<td class="paramname"><em>time</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Return a time value as a number of seconds. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">time</td><td>Time value</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Time in seconds </dd></dl>
</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a class="anchor" id="a4bfaf4ff046dfbbfa6c900ec9b839b4d"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="System_2Export_8h.htm#a5065b7682e049af035219e22fbe00d11">CSFML_SYSTEM_API</a> <a class="el" href="structsfTime.htm">sfTime</a> sfTime_Zero</td>
</tr>
</table>
</div><div class="memdoc">
<p>Predefined "zero" time value. </p>
<p>Definition at line <a class="el" href="Time_8h_source.htm#l00047">47</a> of file <a class="el" href="Time_8h_source.htm">Time.h</a>.</p>
</div>
</div>
</div><!-- contents -->
</div>
<div id="footer-container">
<div id="footer">
Copyright � Laurent Gomila ::
Documentation generated by <a href="http://www.doxygen.org/" title="doxygen website">doxygen</a> ::
</div>
</div>
</body>
</html>
|