Date: Sat, 10 Jan 1998 00:13:56 +1030 From: Mike Smith <mike@smith.net.au> To: daniel_sobral@voga.com.br Cc: mike@smith.net.au, hackers@FreeBSD.ORG Subject: Re: Device Driver Message-ID: <199801091343.AAA00728@word.smith.net.au> In-Reply-To: Your message of "Fri, 09 Jan 1998 11:46:18 -0300." <83256587.0050BC26.00@papagaio.voga.com.br>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > Each tsleep() count corresponds to 1/hz seconds, where hz should > > be considered opaque. > > Yup, but since I'm using tsleep to block for "a while", while the card does > it's business, and waking up now and then to since if it has finished, I'd > like to have _some_ notion of home much is hz. It's way different if hz is > usually in then tenths of second, than if hz is hardly less than 1/100s. Not at all. You want to block for 1/10th of a second? Pass hz/10 as an argument. This way you can change the clock on the fly and still not lose your timing. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801091343.AAA00728>