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