Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!yale!ox.com!caen!sol.ctr.columbia.edu!src.honeywell.com!msi.umn.edu!cs.umn.edu!talon.UCS.ORST.EDU!sequent!uunet!email!vmars!hp From: hp@vmars.tuwien.ac.at (Peter Holzer) Newsgroups: comp.os.minix Subject: Re: finding out the number of clock ticks Keywords: how? Message-ID: <1991May27.082941.11615@email.tuwien.ac.at> Date: 27 May 91 08:29:41 GMT References: <1991May26.061146.19904@monu6.cc.monash.edu.au> Sender: news@email.tuwien.ac.at Distribution: "world" Organization: Technical University of Vienna, Dept. for Realtime Systems Lines: 23 Nntp-Posting-Host: nowhere.vmars.tuwien.ac.at rda654z@monu6.cc.monash.edu.au (Evan McLean) writes: >I'm trying to find a way to read the number of clock ticks since the start >of the program. The c function call "times" is suppose to return this, but >doesn't seem to. >Does anybody know or has code/patches to allow a user program to find out the >number of clock ticks a process has been running for (or alternatively, the >number of clock ticks from some common reference point?) Soon after 1.5 came out I noticed this bug, too. I posted patches to fix it. If you can't find them in an archive near you, they are at ftp.vmars.tuwien.ac.at in file /pub/minix/hp/times.patches. Times now returns the time in ticks since boot time. BTW, Andy, did these patches make it into Minix 1.6? -- | _ | Peter J. Holzer | Think of it | | |_|_) | Technical University Vienna | as evolution | | | | | Dept. for Real-Time Systems | in action! | | __/ | hp@vmars.tuwien.ac.at | Tony Rand |