Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!apple!uokmax!munnari.oz.au!bruce!monu0.cc.monash.edu.au!monu6!rda654z From: rda654z@monu6.cc.monash.edu.au (Evan McLean) Newsgroups: comp.os.minix Subject: finding out the number of clock ticks Keywords: how? Message-ID: <1991May27.004930.11455@monu6.cc.monash.edu.au> Date: 27 May 91 00:49:30 GMT Organization: Monash Uni. (Faculty of things_that_go_bump_in_the_night) Lines: 40 [NOTE :- I'm reposting this as our outside links were playing up over the weekend. Apologies to those who read this twice] 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?) In one of the C header files (I think it was "/usr/include/time.h" there is a prototype for the function "clock" which, to my understanding, returns the number of clock ticks that a program has been running. This is exactly what I want, unfortunately, I have not been able to find the source for this in the libraries... Any help would be appreciated. Thanks in advance. Evan McLean -- Wendigo (Sometimes known as Evan McLean) | "Would you like a bag with that?" [ Occasionally thought of as | "No thanks, I'll throw up rda654z@monu6.cc.monash.edu.au ] | in the packet." Monash University (Caulfield Campus) | -- Terry ordering MacDonalds --- Random quote to follow ---------------------------------------------------- When any principle, law, tenet, probability, happening, circumstance, or result can in no way be directly, indirectly, empirically, or circuitously proven, derived, implied, inferred, induced, deducted, estimated, or scientifically guessed, it will always for the purpose of convenience, expediency, political advantage, material gain, or personal comfort, or any combination of the above, or none of the above, be unilaterally and unequivocally assumed, proclaimed, and adhered to as absolute truth to be undeniably, universally, immutably, and infinitely so, until such time as it becomes advantageous to assume otherwise, maybe. -- Rhode's Law