From owner-freebsd-hackers Mon Apr 17 23:39:04 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id XAA17088 for hackers-outgoing; Mon, 17 Apr 1995 23:39:04 -0700 Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id XAA17081 for ; Mon, 17 Apr 1995 23:39:03 -0700 Received: (from julian@localhost) by ref.tfs.com (8.6.8/8.6.6) id XAA02115; Mon, 17 Apr 1995 23:39:00 -0700 From: Julian Elischer Message-Id: <199504180639.XAA02115@ref.tfs.com> Subject: Re: help with timeouts To: chitra@CS.SunySB.EDU (Chitra Venkatramani) Date: Mon, 17 Apr 1995 23:39:00 -0700 (PDT) Cc: freebsd-hackers@FreeBSD.org In-Reply-To: <199504170227.WAA22003@cs.sunysb.edu> from "Chitra Venkatramani" at Apr 16, 95 10:27:42 pm Content-Type: text Content-Length: 800 Sender: hackers-owner@FreeBSD.org Precedence: bulk > > > Hi! > I am developing a token bus protocol in the FreeBSD network > interrupt handler. For the > token recovery algorithm that I have, I need to set microsecond > timeouts (they could be off by upto 500 u_sec and still serve my purpose). > As things are now, I can only set timeouts in multiples of 10 millisec. > Can you please tell me how I can implement u_sec timeouts ? > Any help will be much appreciated. There is already code that 'turns up' the system clock frequency (I believe the pc-audio code to be exact) to (I think) 10KHz so you could do similar and get 100uSec time, but the question is: do you want to be doing other things while waiting for this timeout, or just spinning awaiting it's completion? julian > > Thanks > -Chitra Venkatramani > (chitra@cs.sunysb.edu) > >