1 <h2>clock_get_attributes
</h2>
4 <strong>Function
</strong> - Return attributes of a clock.
7 <strong>kern_return_t clock_get_attributes
</strong>
8 <strong>(clock_t
</strong> <var>clock_name
</var>,
9 <strong>clock_flavor_t
</strong> <var>flavor
</var>,
10 <strong>clock_attr_t
</strong> <var>attribute
</var>,
11 <strong>mach_msg_type_number_t
</strong> <var>attribute_count
</var><strong>);
</strong>
16 <dt> <var>clock_name
</var>
18 [in clock-name send right]
19 The name (or control) port for the clock.
21 <dt> <var>flavor
</var>
24 Type of information desired. Defined values are:
27 <dt> <strong>CLOCK_GET_TIME_RES
</strong>
29 The resolution, in nanoseconds, with which the value returned
30 by
<strong>clock_get_time
</strong> is updated.
32 <dt> <strong>CLOCK_MAP_TIME_RES
</strong>
34 The resolution, in nanoseconds, with which the value visible
35 via
<strong>clock_map_time
</strong> is updated.
37 <dt> <strong>CLOCK_ALARM_CURRES
</strong>
39 The resolution, in nanoseconds, at which clock alarm and
40 sleep timers are currently serviced.
42 <dt> <strong>CLOCK_ALARM_MINRES
</strong>
44 The minimum resolution, in nanoseconds, at which clock
45 alarm and sleep timers can be serviced.
47 <dt> <strong>CLOCK_ALARM_MAXRES
</strong>
49 The maximum resolution, in nanoseconds, at which clock
50 alarm and sleep timers can be serviced.
53 <dt> <var>attribute
</var>
56 The returned attribute.
58 <dt> <var>attribute_count
</var>
61 On input, the maximum size of the buffer; on output, the
62 size returned (in natural-sized units).
66 The
<strong>clock_get_attributes
</strong> function returns attributes of a clock's
67 implementation or operation.
68 <h3>RETURN VALUES
</h3>
70 Only generic errors apply.
71 <h3>RELATED INFORMATION
</h3>
74 <a href=
"host_get_clock_service.html"><strong>host_get_clock_service
</strong></a>,
75 <a href=
"clock_get_time.html"><strong>clock_get_time
</strong></a>,
76 <a href=
"clock_map_time.html"><strong>clock_map_time
</strong></a>,
77 <a href=
"clock_sleep.html"><strong>clock_sleep
</strong></a>,
78 <a href=
"clock_alarm.html"><strong>clock_alarm
</strong></a>,
79 <a href=
"clock_set_attributes.html"><strong>clock_set_attributes
</strong></a>.