1<h2>clock_get_time</h2>
2<hr>
3<p>
4<strong>Function</strong> - Return the current time.
5<h3>SYNOPSIS</h3>
6<pre>
7<strong>kern_return_t   clock_get_time</strong>
8                <strong>(clock_t</strong>                             <var>clock_name</var>,
9                 <strong>tvalspec_t</strong>                            <var>cur_time</var><strong>);</strong>
10</pre>
11<h3>PARAMETERS</h3>
12<dl>
13<p>
14<dt> <var>clock_name</var> 
15<dd>
16[in clock-name send right]
17The name (or control) port for the clock.
18<p>
19<dt> <var>cur_time</var> 
20<dd>
21[out structure]
22Current time
23</dl>
24<h3>DESCRIPTION</h3>
25<p>
26The <strong>clock_get_time</strong> function returns the current time
27kept by a clock.  The
28value returned is a monotonically increasing value (unless tampered
29with via the 
30<strong>clock_set_time</strong> function).
31<h3>RETURN VALUES</h3>
32<p>
33Only generic errors apply.
34<h3>RELATED INFORMATION</h3>
35<p>
36Functions:
37<a href="host_get_clock_service.html"><strong>host_get_clock_service</strong></a>,
38<a href="clock_get_attributes.html"><strong>clock_get_attributes</strong></a>,
39<a href="clock_map_time.html"><strong>clock_map_time</strong></a>,
40<a href="clock_sleep.html"><strong>clock_sleep</strong></a>,
41<a href="clock_alarm.html"><strong>clock_alarm</strong></a>,
42<a href="clock_set_time.html"><strong>clock_set_time</strong></a>.
43<p>
44Data Structures:
45<a href="tvalspec.html"><strong>tvalspec</strong></a>.
46