Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!munnari.oz.au!brolga!uqcspe!batserver.cs.uq.oz.au!thyssen From: thyssen@batserver.cs.uq.oz.au (Anthony Thyssen) Newsgroups: comp.unix.programmer Subject: Re: How to measure cpu time to ~ 1 millisecond? Keywords: time Message-ID: <5042@uqcspe.cs.uq.oz.au> Date: 29 Sep 90 05:44:27 GMT References: <237@locke.water.ca.gov> Sender: news@uqcspe.cs.uq.oz.au Reply-To: thyssen@batserver.cs.uq.oz.au Lines: 23 rfinch@caldwr.water.ca.gov (Ralph Finch) writes: >Setup: Sun 4/330, SunOS 4.1 >We need to measure cpu time in a program down to about a 1 millisecond >resolution. The clock call says it can only measure to 16.7 ms. Any >other ideas on how cpu time can be measured? I was recently faced with the same problem. The Answer There is not ^*%&^%$^%$ way! My solution to this problem was to recomplie the program on a Amiga500 and time the part I wanted using the hardware CIA timers (1.3us per tick) I was also informed another person in the same boat did his timing on a Mac. Anthony Thyssen - (Dragon Computing!) thyssen@batserver.cs.uq.oz.au ------------------------------------------------------------------------------- I really hate this damm machine, I wish that they would sell it. It never does quite what I want, Only what I tell it. -------------------------------------------------------------------------------