Subject: Re: timing issue
To: None <netbsd-users@netbsd.org>
From: Zafer Aydogan <zafer@aydogan.de>
List: netbsd-users
Date: 11/18/2006 11:15:01
I'm running current GENERIC and getting similiar data.

gettimeofday:        5 usec
nanosleep:       16659 usec
usleep:          19560 usec
select:          19759 usec

NetBSD 4.99.3 (GENERIC) #34: Wed Nov  8 22:57:27 CET 2006

Zafer.

2006/11/18, Christian Biere <christianbiere@gmx.de>:
> lists@badzong.com wrote:
> > freebsd results stay always below 2000 usec:
> >
> > gettimeofday:         2 usec
> > usleep:            1995 usec
> > nanosleep:         1996 usec
> > select:            1998 usec
> >
> >
> > netbsd's results range from 9000 to 20000 usec with an average of 14000
> > usec.
> >
> > gettimeofday:         2 usec
> > usleep:           13096 usec
> > nanosleep:        12056 usec
> > select:           13476 usec
> >
> > Why is netbsd so inaccurate and is there a more precise system call or a
> > workaround?
>
> Could you try a kernel with the NO_TSC_TIME option?
>
> --
> Christian
>