Looking for fast timer
Karl Danz
karl at cygnet.CYGNETSYSTEMS
Sun Jan 6 11:14:21 AEST 1985
> We are looking for some type of timer function, such as alarm(2),
> which will give us a granularity of 1/60th of a second. If I can recall
> correctly, I once read something about /dev/ft. Does anybody know
> about this?? Thanks.
If you are running 4.2BSD, you can use setitimer(2). The resolution
provided is that of the system clock. See the code for sleep() in the
C library for a usage example, or I can mail you a copy of our xsleep()
routine whose argument is a double (hint).
Karl Danz
Cygnet Systems
...!hplabs!cygnet!karl
More information about the Comp.unix.wizards
mailing list