From owner-freebsd-hackers Tue Feb 5 11: 6:16 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from wall.polstra.com (wall-gw.polstra.com [206.213.73.130]) by hub.freebsd.org (Postfix) with ESMTP id 2BD2B37B420 for ; Tue, 5 Feb 2002 11:06:11 -0800 (PST) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.3) with ESMTP id g15J68o53968; Tue, 5 Feb 2002 11:06:08 -0800 (PST) (envelope-from jdp@wall.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.11.6/8.11.0) id g15J68E04216; Tue, 5 Feb 2002 11:06:08 -0800 (PST) (envelope-from jdp) Date: Tue, 5 Feb 2002 11:06:08 -0800 (PST) Message-Id: <200202051906.g15J68E04216@vashon.polstra.com> To: hackers@freebsd.org From: John Polstra Cc: phk@critter.freebsd.dk Subject: Re: A question about timecounters In-Reply-To: <91801.1012935515@critter.freebsd.dk> References: <91801.1012935515@critter.freebsd.dk> Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In article <91801.1012935515@critter.freebsd.dk>, Poul-Henning Kamp wrote: > In message <200202051851.g15IpbU04184@vashon.polstra.com>, John Polstra writes: > >Yes, I think you're onto something now. It's a 550 MHz. machine, so > >the TSC increments every 1.82 nsec. And 1.82 nsec * 2^32 is 7.81 > >seconds. :-) > > In that case I'm almost willing to put an AnchorSteam on microuptime() > being interrupted for more than good is in which case the splhigh() should > cure it. I'm testing that now. But for how long would microuptime have to be interrupted to make this happen? Surely not 7.81 seconds! On this same machine I have a curses application running which is updating the screen once a second. It never misses a beat, and userland is very responsive. John -- John Polstra John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message