Back to Darwin Xnu

Host Get Time

osfmk/man/host_get_time.html

latest672 B
Original Source

host_get_time


Function - Return the current time.

SYNOPSIS

**#include&lt mach/mach\_host.h&gt**** kern\_return\_t host\_get\_time****(host\_t**host, **time\_value\_t** current\_time**);**

PARAMETERS

host[in host-name port] The name port the host for which the time is to be set.

current_time[out structure] Returned time value.

DESCRIPTION

The host_get_time function returns the current time as seen by that host.

RETURN VALUES

Only generic errors apply.

Functions: host_adjust_time, host_set_time.

Data Structures: time_value.