Back to Darwin Xnu

Clock Get Time

osfmk/man/clock_get_time.html

latest953 B
Original Source

clock_get_time


Function - Return the current time.

SYNOPSIS

**kern\_return\_t clock\_get\_time**** (clock\_t **clock\_name,** tvalspec\_t **cur\_time** );**

PARAMETERS

clock_name[in clock-name send right] The name (or control) port for the clock.

cur_time[out structure] Current time

DESCRIPTION

The clock_get_time function returns the current time kept by a clock. The value returned is a monotonically increasing value (unless tampered with via the clock_set_time function).

RETURN VALUES

Only generic errors apply.

Functions: host_get_clock_service, clock_get_attributes, clock_map_time, clock_sleep, clock_alarm, clock_set_time.

Data Structures: tvalspec.