For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > August 2005 > Re: kernel timer









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: kernel timer
Loic Domaigne

2005-08-24, 9:56 pm

Salut Michael,

> I've been working on the code for a kernel timer which will report real
> time, CPU time, user time and kernel time on the operation of fibonacci
> method.


what Do you mean by CPU time?

Usually the interesting time collection is: execution time, user CPU
time, kernel CPU time.


> The way im doing it is keeping track of the parent and two child times
> (using fork()).


Make it (much) simpler: have a look to the function times():
man 2 times


HTH,
Loic.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com