Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Aug 2001 14:49:55 -0500
From:      Alfred Perlstein <bright@mu.org>
To:        Jeff Behl <jeff@expertcity.com>
Cc:        "'freebsd-hackers@freebsd.org'" <freebsd-hackers@freebsd.org>
Subject:   Re: timing question
Message-ID:  <20010806144955.O85642@elvis.mu.org>
In-Reply-To: <0307F3737A2AD511A42200D0B7A071919A402F@dopey.corp.expertcity.com>; from jeff@expertcity.com on Mon, Aug 06, 2001 at 10:49:05AM -0700
References:  <0307F3737A2AD511A42200D0B7A071919A402F@dopey.corp.expertcity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Jeff Behl <jeff@expertcity.com> [010806 12:48] wrote:
> please excuse and direct me to the right place if this isn't the appropriate
> place to post this sort of question....
> 
> we're looking into moving to freebsd (yea!), but found the following
> problem.  It seems that the shortest amount of time the below code will
> sleep for is 20 seconds!  any call to nanosleep for 5,10, etc miliseconds
> returns a 20 ms delay.  are we doing something wrong?

You may have to increase the kernel value for HZ so that you get
more fine grained clock interrupts.

-- 
-Alfred Perlstein [alfred@freebsd.org]
Ok, who wrote this damn function called '??'?
And why do my programs keep crashing in it?

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010806144955.O85642>