]> git.saurik.com Git - apple/xnu.git/blame - osfmk/man/host_get_time.html
xnu-7195.101.1.tar.gz
[apple/xnu.git] / osfmk / man / host_get_time.html
CommitLineData
13fec989
A
1<h2>host_get_time</h2>
2<hr>
3<p>
4<strong>Function</strong> - Return the current time.
5<h3>SYNOPSIS</h3>
6<pre>
7<strong>#include&lt mach/mach_host.h&gt</strong>
8
9<strong>kern_return_t host_get_time</strong>
10 <strong>(host_t</strong> <var>host</var>,
11 <strong>time_value_t</strong> <var>current_time</var><strong>);</strong>
12</pre>
13<h3>PARAMETERS</h3>
14<dl>
15<p>
16<dt> <var>host</var>
17<dd>
18[in host-name port] The name port the host for which the time is to be set.
19<p>
20<dt> <var>current_time</var>
21<dd>
22[out structure] Returned time value.
23</dl>
24<h3>DESCRIPTION</h3>
25<p>
26The <strong>host_get_time</strong> function returns the current time
27as seen by that <var>host</var>.
28<h3>RETURN VALUES</h3>
29<p>
30Only generic errors apply.
31<h3>RELATED INFORMATION</h3>
32<p>
33Functions:
34<a href="host_adjust_time.html"><strong>host_adjust_time</strong></a>,
35<a href="host_set_time.html"><strong>host_set_time</strong></a>.
36<p>
37Data Structures:
38time_value.