]> git.saurik.com Git - apple/xnu.git/blame - osfmk/man/host_get_time.html
xnu-792.tar.gz
[apple/xnu.git] / osfmk / man / host_get_time.html
CommitLineData
9bccf70c 1<h2>host_get_time</h2>\r<hr>\r<p>\r<strong>Function</strong> - Return the current time.\r<h3>SYNOPSIS</h3>\r<pre>\r<strong>#include&lt mach/mach_host.h&gt</strong>\r\r<strong>kern_return_t host_get_time</strong>\r <strong>(host_t</strong> <var>host</var>,\r <strong>time_value_t</strong> <var>current_time</var><strong>);</strong>\r</pre>\r<h3>PARAMETERS</h3>\r<dl>\r<p>\r<dt> <var>host</var>\r<dd>\r[in host-name port] The name port the host for which the time is to be set.\r<p>\r<dt> <var>current_time</var>\r<dd>\r[out structure] Returned time value.\r</dl>\r<h3>DESCRIPTION</h3>\r<p>\rThe <strong>host_get_time</strong> function returns the current time\ras seen by that <var>host</var>.\r<h3>RETURN VALUES</h3>\r<p>\rOnly generic errors apply.\r<h3>RELATED INFORMATION</h3>\r<p>\rFunctions:\r<a href="host_adjust_time.html"><strong>host_adjust_time</strong></a>,\r<a href="host_set_time.html"><strong>host_set_time</strong></a>.\r<p>\rData Structures:\rtime_value.\r