2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2016 Joyent, Inc.
19 .Nd get time information
24 .Fa "struct timespec *ts"
30 function provides access nanosecond resolution time. The
31 meaning and source of time is defined by the
33 argument. The following values are defined for
37 Obtain the current time of day from the realtime clock on the system. It
38 represents the amount of time in second and nanoseconds since the Epoch.
39 This is logically equivalent to calling
45 For the definition of the
50 Upon successful completion, the
52 function returns the passed in value of
56 is returned to represent an error.
58 Unlike other functions, the
60 function is not defined to set
64 function will fail if:
65 .Bl -bullet -offset indent
69 does not refer to a known time specification.
71 There was an error obtaining the time for
74 .Sh INTERFACE STABILITY
79 .Xr clock_gettime 3C ,