]> git.saurik.com Git - apple/xnu.git/blob - osfmk/man/tvalspec.html
xnu-2422.1.72.tar.gz
[apple/xnu.git] / osfmk / man / tvalspec.html
1 <h2>tvalspec</h2>
2 <hr>
3 <p>
4 <strong>Structure</strong> - Defines format of system time values.
5 <h3>SYNOPSIS</h3>
6 <pre>
7 <strong>struct tvalspec</strong>
8 <strong>{</strong>
9 <strong>unsigned int</strong> <var>tv_sec</var><strong>;</strong>
10 <strong>clock_res_t</strong> <var>tv_nsec</var><strong>;</strong>
11 <strong>};</strong>
12
13 <strong>typedef struct tvalspec tvalspec_t;</strong>
14 </pre>
15 <h3>FIELDS</h3>
16 <dl>
17 <dt> <var>tv_sec</var>
18 <dd>
19 Seconds.
20 <p>
21 <dt> <var>tv_nsec</var>
22 <dd>
23 Nanoseconds.
24 </dl>
25 <h3>DESCRIPTION</h3>
26 <p>
27 The <strong>tvalspec</strong> structure defines the format of the time
28 structure supplied to or
29 returned from the kernel. This definition conforms to the Posix
30 1003.4 <var>timespec</var>
31 definition where the <var>tv_nsec</var> structure member is valid
32 if (0 =< <var>tv_nsec</var> < 109) and
33 the time period described is ((<var>tv_sec</var> * 109) + <var>tv_nsec</var>) nanoseconds.
34 <h3>RELATED INFORMATION</h3>
35 <p>
36 Functions:
37 <a href="clock_get_time.html"><strong>clock_get_time</strong></a>,
38 <a href="clock_set_time.html"><strong>clock_set_time</strong></a>,
39 <a href="clock_sleep.html"><strong>clock_sleep</strong></a>,
40 <a href="clock_alarm.html"><strong>clock_alarm</strong></a>,
41 <a href="clock_alarm_reply.html"><strong>clock_alarm_reply</strong></a>.
42 <p>
43 Data Structures:
44 <a href="mapped_tvalspec.html"><strong>mapped_tvalspec</strong></a>.