From owner-freebsd-hackers Wed Jun 18 01:33:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA05588 for hackers-outgoing; Wed, 18 Jun 1997 01:33:54 -0700 (PDT) Received: from sendero.i-connect.net (sendero-ppp.i-Connect.Net [206.190.143.100]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA05583 for ; Wed, 18 Jun 1997 01:33:50 -0700 (PDT) Received: (from shimon@localhost) by sendero.i-connect.net (8.8.5/8.8.5) id BAA17598 for FreeBSD-Hackers@FreeBSD.org; Wed, 18 Jun 1997 01:33:56 -0700 (PDT) Message-ID: X-Mailer: XFMail 1.2-alpha [p0] on FreeBSD Content-Type: text/plain; charset=iso-8859-8 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Wed, 18 Jun 1997 01:33:55 -0700 (PDT) Organization: Atlas Telecom From: Simon Shapiro To: FreeBSD-Hackers@FreeBSD.org Subject: High Resolution Timers, How? Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Hi Y'all, I am in need for a precise, high resolution timer within the kernel. I need it to time certain instructions, functions, and I/O events. The best i could find is a global variable called time which claims to have a usec resolution but; Either I am exceptionally lucky and always hit it on a x000000 resolution, or it is not telling the truth. i need a timer that will increment in usec resolution or as close to it as I can get. Any help will be appreciated. Simon