Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Dec 2004 18:51:44 +1100
From:      Peter Jeremy <PeterJeremy@optushome.com.au>
To:        Castl Troy <mastah@phreaker.net>
Cc:        hackers@freebsd.org
Subject:   Re: calibrating time
Message-ID:  <20041222075144.GN79646@cirb503493.alcatel.com.au>
In-Reply-To: <6.2.0.7.1.20041221221529.021bb7d0@pop.phreaker.net>
References:  <6.2.0.7.1.20041221221529.021bb7d0@pop.phreaker.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2004-Dec-21 22:15:33 +0300, Castl Troy wrote:
>Just want to ask people here who have time to run my program and answer me 
>back output from it.

Out of interest, what are you expecting to demonstrate?  In FreeBSD,
both sleep(3) and usleep(3) are implemented using nanosleep(2).
(This differs from the traditional implementation of sleep(3) which
used alarm(2) and pause(2)).

nanosleep(2) sleeps an integral number of ticks which is rounded up by
one tick.

-- 
Peter Jeremy



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