Hello atte!
Two things I can think of: Have you tried the normal top? - I don't know
about its accuracy.
Another thing: A friend of mine once wrote some algorythms and used some
output found in the proc directory. he said there was just one problem: He had
to take care, that no other CPU hungry processes were running, on any
processes, that might cause problems (cron jobs, hungry user-apps, etc.).
Don't know what he did exactly though. But perhaps worth investigating.
Kindest regards
Julien
--------
Music was my first love and it will be my last (John Miles)
======== FIND MY WEB-PROJECT AT: ========
http://ltsb.sourceforge.net
the Linux TextBased Studio guide
======= AND MY PERSONAL PAGES AT: =======
http://www.juliencoder.de