summaryrefslogtreecommitdiff
path: root/static/freebsd/man3/timespec_getres.3
blob: e00af6758f1a1dc7bdc13f3c541fc1ec455f3604 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.\"-
.\" Copyright (c) 2023 Dag-Erling Smørgrav
.\"
.\" SPDX-License-Identifier: BSD-2-Clause
.\"
.Dd August 21, 2023
.Dt TIMESPEC_GETRES 3
.Os
.Sh NAME
.Nm timespec_getres
.Nd get clock resolution
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
.In time.h
.Ft int
.Fn timespec_getres "struct timespec *ts" "int base"
.Sh DESCRIPTION
If
.Fa ts
is non-null and
.Fa base
refers to a supported time base as described in
.Xr timespec_get 3 ,
the
.Nm
function fills in the structure pointed to by
.Fa ts
to reflect the resolution of that time base.
.Sh RETURN VALUES
The
.Nm
function returns the value of
.Fa base
if successful and zero otherwise.
.Sh SEE ALSO
.Xr clock_getres 2 ,
.Xr timespec_get 3
.\" .Sh STANDARDS
.\" The
.\" .Nm
.\" function conforms to
.\" .St -isoC-2023 .
.Sh HISTORY
This interface first appeared in
.Fx 14 .
.Sh AUTHORS
The
.Nm
function and this manual page were written by
.An Dag-Erling Sm\(/orgrav Aq Mt des@FreeBSD.org .