Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Dec 1997 19:14:48 +1030
From:      Mike Smith <mike@smith.net.au>
To:        "J. Weatherbee - Senior Systems Architect" <jamil@acroal.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Am I off my rocker? (/dev/tick device) 
Message-ID:  <199712220844.TAA00494@word.smith.net.au>
In-Reply-To: Your message of "Mon, 22 Dec 1997 00:08:48 -0800." <Pine.BSF.3.96.971221234402.2497A-100000@acroal.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> for read.  I may be dealing with 64 or so descriptors, but I thought it
> might be useful to have a /dev/tick pseudo device that would come ready
> for i/o say 10-100 times a second (depending on an ioctl).  So suppose you
> open this device, and ioctl() it to 10 hertz, if you went into select() it
> would return ~100ms after opening the read ready on the /dev/tick fd. When
> you call read on /dev/tick, you get a unsigned int representing the number
> of microseconds (or alternately milliseconds) elapsed since the descriptor
> was opened.

Try 'man setitimer' and 'man gettimeofday'.  There's nothing you're 
suggesting that can't already be done with those two.

mike





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