Subject: Re: microtime(9) slow on i386?
To: Jaromir Dolecek <jdolecek@NetBSD.org>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: tech-perform
Date: 10/23/2001 13:44:55
On Tue, Oct 23, 2001 at 10:26:50PM +0200, Jaromir Dolecek wrote:

 > Actually, the sniplet above should be like this AFAICS:
 > 	int s = splclock();
 > 	tv = time;
 > 	splx(s);
 > 
 > I'm going to change the NEWPIPE code to use this instead of microtime(9).

Okay, that'd be fine, but the file system code doesn't use splclock()
mostly because it doesn't really "need"[*] to.  I don't really think you
"need" to here, either.  But that's neither here nor there :-)

[*] Yes, technically you need splclock to make access to time atomic,
but for these applications ... maybe it doesn't matter so much.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>