mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-05 16:10:55 +00:00
Document CLOCK_UPTIME which returns the current uptime in SI seconds.
At the moment it is just an alias for CLOCK_MONOTONIC which reports the same number. Sponsored by: TCP/IP Optimization Fundraise 2005
This commit is contained in:
parent
cb752e17a9
commit
f6232df7a4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152587
|
@ -33,7 +33,7 @@
|
||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd June 17, 2004
|
.Dd November 18, 2005
|
||||||
.Dt CLOCK_GETTIME 2
|
.Dt CLOCK_GETTIME 2
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
|
@ -65,6 +65,8 @@ The
|
||||||
argument
|
argument
|
||||||
can be one of four values: CLOCK_REALTIME for time that increments as
|
can be one of four values: CLOCK_REALTIME for time that increments as
|
||||||
a wall clock should, CLOCK_MONOTONIC which increments in SI seconds,
|
a wall clock should, CLOCK_MONOTONIC which increments in SI seconds,
|
||||||
|
CLOCK_UPTIME which starts at zero when the kernel boots and increments
|
||||||
|
monotonically in SI seconds while the machine is running,
|
||||||
CLOCK_VIRTUAL for time that increments only when
|
CLOCK_VIRTUAL for time that increments only when
|
||||||
the CPU is running in user mode on behalf of the calling process, or
|
the CPU is running in user mode on behalf of the calling process, or
|
||||||
CLOCK_PROF for time that increments when the CPU is running in user or
|
CLOCK_PROF for time that increments when the CPU is running in user or
|
||||||
|
|
Loading…
Reference in a new issue