Path: utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request From: jewell@tower-unix.city-poly.ac.uk (Tony Jewell) Newsgroups: comp.sys.sun Subject: Timed I/O - How do I do it please ? Keywords: Miscellaneous Message-ID: <2645@brchh104.bnr.ca> Date: 27 Apr 91 00:00:00 GMT Sender: news@brchh104.bnr.ca Organization: Sun-Spots Lines: 27 Approved: Sun-Spots@rice.edu X-Original-Date: Tue, 23 Apr 91 11:55:53 BST X-Sun-Spots-Digest: Volume 10, Issue 91, message 6 X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu 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