jewell@tower-unix.city-poly.ac.uk (Tony Jewell) (04/27/91)
I'm currently in the process of designing a direct to disk recording
system - please bear with me, my C and Unix tend to flounder beyond a
simple system administration level.
To do some simple benchmarks, I'd like to read a 16bit integer from a file
once every 1/48000 seconds. How do I time this - utime doesn't have a low
enough resolution, and I don't understand setitimer. Basically I want to
do the following:
start timer
read integer
check timer
if done within 1/48000 secs
go back to start
else
report error
go back to start
I'm currently using a Sun Sparc 1 running 4.1.1
Thank you in advance for your help.
Tony Jewell
JANET: jewell@uk.ac.clp.unixa
EARN/Bitnet: jewell@unixa.clp.ac.uk
EAN: jewell%clp.unixa@ean-relay.ac.uk