From owner-freebsd-hackers Fri Oct 23 14:01:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA09739 for freebsd-hackers-outgoing; Fri, 23 Oct 1998 14:01:15 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA09727 for ; Fri, 23 Oct 1998 14:01:09 -0700 (PDT) (envelope-from tlambert@usr07.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.8.8/8.8.8) id OAA18447; Fri, 23 Oct 1998 14:00:37 -0700 (MST) Received: from usr07.primenet.com(206.165.6.207) via SMTP by smtp01.primenet.com, id smtpd018425; Fri Oct 23 14:00:35 1998 Received: (from tlambert@localhost) by usr07.primenet.com (8.8.5/8.8.5) id OAA02144; Fri, 23 Oct 1998 14:00:34 -0700 (MST) From: Terry Lambert Message-Id: <199810232100.OAA02144@usr07.primenet.com> Subject: Re: Time granularity To: stefan@callmedia.se Date: Fri, 23 Oct 1998 21:00:34 +0000 (GMT) Cc: freebsd-hackers@FreeBSD.ORG In-Reply-To: <199810221827.UAA22987@callmedia.se> from "stefan@callmedia.se" at Oct 22, 98 08:52:45 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Unfortunately we have some of these horrible SCO 3.2 server(something). > (We can't at this moment port that software to FreeBSD. driver stuff) > Is there anyone that have any clue on how to get bigger time > granularity on SCO 3.2 than hundreds of a second(thousands with CPU > time usage)? We need to do very accurate timing in a kind of competition. > Is there any library for this kind of stuff out there? > > (With FreeBSD's timing functionality and virtual clocks there is no > problem, I know,) If this is a Pentium, you can read the instruction cycle counter; see the FreeBSD "timecounter" code in the /sys/i386 directory for more details. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message