From owner-freebsd-alpha Tue May 1 2: 7:57 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from barry.mail.mindspring.net (barry.mail.mindspring.net [207.69.200.25]) by hub.freebsd.org (Postfix) with ESMTP id 1F08737B422; Tue, 1 May 2001 02:07:55 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from mindspring.com (pool0731.cvx21-bradley.dialup.earthlink.net [209.179.194.221]) by barry.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id FAA02289; Tue, 1 May 2001 05:07:49 -0400 (EDT) Message-ID: <3AEE7CF7.69D87D5F@mindspring.com> Date: Tue, 01 May 2001 02:08:07 -0700 From: Terry Lambert Reply-To: tlambert2@mindspring.com X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Mike Smith Cc: Terry Lambert , Rolf Neugebauer , freebsd-alpha@FreeBSD.ORG Subject: Re: determine cycle counter frequency in user space References: <200104302157.f3ULvvv02259@mass.dis.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Mike Smith wrote: > Use time_second for coarse timing requirements. [ ... ] > The cycle counter can't be relied on. Get this through your > thick head. The clock frequency on many Alpha systems is > unstable, and on most PCs, it can change out from under you > with no warning. [ ... ] > Hardware sucks; what can I say? You can't do this usefully > in userspace; stop trying and go buy some real timing hardware > if you actually care. Sorry; I didn't get this message in time. Unfortunately, my code is now working with ~90uS accuracy, +/- 90uS. I'll try to be more dilligent in keeping up with my email from now on... ;-). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message