diff options
author | andre <andre@FreeBSD.org> | 2005-11-18 17:13:22 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2005-11-18 17:13:22 +0000 |
commit | e76b2aa5e34473052bb40db62fe1465a97467520 (patch) | |
tree | fc4bad2271316338ac9c8d685d8529c4540e4398 /lib/libc | |
parent | c43b76d70ffbe861d8f0a4ee295b025f6f402bd8 (diff) | |
download | FreeBSD-src-e76b2aa5e34473052bb40db62fe1465a97467520.zip FreeBSD-src-e76b2aa5e34473052bb40db62fe1465a97467520.tar.gz |
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
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/clock_gettime.2 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/sys/clock_gettime.2 b/lib/libc/sys/clock_gettime.2 index a608870..15c7156 100644 --- a/lib/libc/sys/clock_gettime.2 +++ b/lib/libc/sys/clock_gettime.2 @@ -33,7 +33,7 @@ .\" .\" $FreeBSD$ .\" -.Dd June 17, 2004 +.Dd November 18, 2005 .Dt CLOCK_GETTIME 2 .Os .Sh NAME @@ -65,6 +65,8 @@ The argument can be one of four values: CLOCK_REALTIME for time that increments as 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 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 |