From f6232df7a4366105ebcad4a842c87a864ff75b49 Mon Sep 17 00:00:00 2001 From: Andre Oppermann Date: Fri, 18 Nov 2005 17:13:22 +0000 Subject: [PATCH] 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 --- lib/libc/sys/clock_gettime.2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libc/sys/clock_gettime.2 b/lib/libc/sys/clock_gettime.2 index a6088701146..15c71563370 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