getclock(3C)getclock(3C)NAMEgetclock - get current value of system-wide clock
SYNOPSISDESCRIPTION
The function gets the current value of the specified system-wide clock,
supports a of defined in which represents the time-of-day clock for the
system. For this clock, the values returned by represent the amount of
time since the Epoch.
RETURN VALUE
Upon successful completion, returns a value of zero; otherwise it
returns a value of −1 and sets to indicate the error.
ERRORS
fails if any of the following conditions are encountered:
[EINVAL] does not specify a known system-wide clock.
[EIO] An error occurred while accessing the clock device.
FILESSEE ALSOclocks(2), clock_gettime(2), gettimer(3C), setclock(3C),
thread_safety(5).
STANDARDS CONFORMANCEgetclock(3C)