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.
31 The meaning and source of time is defined by the
34 The following values are defined for
38 Obtain the current time of day from the realtime clock on the system.
39 It represents the amount of time in second and nanoseconds since the Epoch.
40 This is logically equivalent to calling
46 For the definition of the
51 Upon successful completion, the
53 function returns the passed in value of
57 is returned to represent an error.
59 Unlike other functions, the
61 function is not defined to set
65 function will fail if:
66 .Bl -bullet -offset indent
70 does not refer to a known time specification.
72 There was an error obtaining the time for
75 .Sh INTERFACE STABILITY
80 .Xr clock_gettime 3C ,