[comp.benchmarks] measuring runtimes

rn@informatik.uni-kiel.dbp.de (Rilo Nauman) (02/21/91)

I need to measure runtimes of functions and moduls of
C-programs under sun-OS.4.1 on a sparc station 1.
I'm looking for a timer with quite a high resolution.
Till now, I'm using system-calls to clock() and
setitimer()-/ getitimer()-calls but the best resolution
I can get is about 16.6 ms (60 Hz), (10 ms ).
Does anyone know a possibility to get a better resolution
of the runtime ?
By the way, does anyone exactly know what kind of runtime
is measured by calls to clock() and getitimer(ITIMER-VIRTUAL,
ITIMER_PROF) ?
The manual isn't very precise at this point!

Any hints and suggestions are recommended !

Please respond to
rn@informatik.uni-kiel.dbp.de

Rilo Naumann