View | Details | Raw Unified | Return to bug 256941 | Differences between
and this patch

Collapse All | Expand All

(-)b/lib/libc/sys/clock_gettime.2 (-1 / +8 lines)
Lines 29-35 Link Here
29
.\"
29
.\"
30
.\" $FreeBSD$
30
.\" $FreeBSD$
31
.\"
31
.\"
32
.Dd May 13, 2021
32
.Dd July 1, 2021
33
.Dt CLOCK_GETTIME 2
33
.Dt CLOCK_GETTIME 2
34
.Os
34
.Os
35
.Sh NAME
35
.Sh NAME
Lines 68-77 as well as the following values: Link Here
68
.It Dv CLOCK_REALTIME
68
.It Dv CLOCK_REALTIME
69
.It Dv CLOCK_REALTIME_PRECISE
69
.It Dv CLOCK_REALTIME_PRECISE
70
.It Dv CLOCK_REALTIME_FAST
70
.It Dv CLOCK_REALTIME_FAST
71
.It Dv CLOCK_REALTIME_COARSE
71
Increments as a wall clock should.
72
Increments as a wall clock should.
72
.It Dv CLOCK_MONOTONIC
73
.It Dv CLOCK_MONOTONIC
73
.It Dv CLOCK_MONOTONIC_PRECISE
74
.It Dv CLOCK_MONOTONIC_PRECISE
74
.It Dv CLOCK_MONOTONIC_FAST
75
.It Dv CLOCK_MONOTONIC_FAST
76
.It Dv CLOCK_MONOTONIC_COARSE
75
Increments in SI seconds.
77
Increments in SI seconds.
76
.It Dv CLOCK_UPTIME
78
.It Dv CLOCK_UPTIME
77
.It Dv CLOCK_UPTIME_PRECISE
79
.It Dv CLOCK_UPTIME_PRECISE
Lines 104-109 Similarly, Link Here
104
.Fa CLOCK_UPTIME_PRECISE
106
.Fa CLOCK_UPTIME_PRECISE
105
are used to get the most exact value as possible, at the expense of
107
are used to get the most exact value as possible, at the expense of
106
execution time.
108
execution time.
109
Finally, the clock IDs
110
.Fa CLOCK_REALTIME_COARSE ,
111
.Fa CLOCK_MONOTONIC_COARSE
112
are aliases of corresponding IDs with _FAST suffix for compatibility with other
113
systems.
107
.Pp
114
.Pp
108
The structure pointed to by
115
The structure pointed to by
109
.Fa tp
116
.Fa tp
(-)b/sys/sys/time.h (+3 lines)
Lines 482-493 struct clockinfo { Link Here
482
#ifndef CLOCK_MONOTONIC
482
#ifndef CLOCK_MONOTONIC
483
#define	CLOCK_MONOTONIC	4
483
#define	CLOCK_MONOTONIC	4
484
#define	CLOCK_UPTIME	5		/* FreeBSD-specific. */
484
#define	CLOCK_UPTIME	5		/* FreeBSD-specific. */
485
#define	CLOCK_BOOTTIME		CLOCK_UPTIME		/* Linux compat */
485
#define	CLOCK_UPTIME_PRECISE	7	/* FreeBSD-specific. */
486
#define	CLOCK_UPTIME_PRECISE	7	/* FreeBSD-specific. */
486
#define	CLOCK_UPTIME_FAST	8	/* FreeBSD-specific. */
487
#define	CLOCK_UPTIME_FAST	8	/* FreeBSD-specific. */
487
#define	CLOCK_REALTIME_PRECISE	9	/* FreeBSD-specific. */
488
#define	CLOCK_REALTIME_PRECISE	9	/* FreeBSD-specific. */
488
#define	CLOCK_REALTIME_FAST	10	/* FreeBSD-specific. */
489
#define	CLOCK_REALTIME_FAST	10	/* FreeBSD-specific. */
490
#define	CLOCK_REALTIME_COARSE	CLOCK_REALTIME_FAST	/* Linux compat */
489
#define	CLOCK_MONOTONIC_PRECISE	11	/* FreeBSD-specific. */
491
#define	CLOCK_MONOTONIC_PRECISE	11	/* FreeBSD-specific. */
490
#define	CLOCK_MONOTONIC_FAST	12	/* FreeBSD-specific. */
492
#define	CLOCK_MONOTONIC_FAST	12	/* FreeBSD-specific. */
493
#define	CLOCK_MONOTONIC_COARSE	CLOCK_MONOTONIC_FAST	/* Linux compat */
491
#define	CLOCK_SECOND	13		/* FreeBSD-specific. */
494
#define	CLOCK_SECOND	13		/* FreeBSD-specific. */
492
#define	CLOCK_THREAD_CPUTIME_ID	14
495
#define	CLOCK_THREAD_CPUTIME_ID	14
493
#define	CLOCK_PROCESS_CPUTIME_ID	15
496
#define	CLOCK_PROCESS_CPUTIME_ID	15

Return to bug 256941