From owner-cvs-all Thu Feb 7 13:22: 1 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7EBF237B423; Thu, 7 Feb 2002 13:21:55 -0800 (PST) Received: (from phk@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g17LLtc82112; Thu, 7 Feb 2002 13:21:55 -0800 (PST) (envelope-from phk) Message-Id: <200202072121.g17LLtc82112@freefall.freebsd.org> From: Poul-Henning Kamp Date: Thu, 7 Feb 2002 13:21:55 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys time.h timetc.h src/sys/kern kern_ntptime.c kern_tc.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk 2002/02/07 13:21:55 PST Modified files: sys/sys time.h timetc.h sys/kern kern_ntptime.c kern_tc.c Log: Revise timercounters to use binary fixed point format internally. The binary format "bintime" is a 32.64 format, it will go to 64.64 when time_t does. The bintime format is available to consumers of time in the kernel, and is preferable where timeintervals needs to be accumulated. This change simplifies much of the magic math inside the timecounters and improves the frequency and time precision by a couple of bits. I have not been able to measure a performance difference which was not a tiny fraction of the standard deviation on the measurements. Revision Changes Path 1.41 +2 -2 src/sys/kern/kern_ntptime.c 1.113 +60 -108 src/sys/kern/kern_tc.c 1.48 +109 -1 src/sys/sys/time.h 1.45 +2 -6 src/sys/sys/timetc.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message