measuring runtimes

Rilo Nauman rn at informatik.uni-kiel.dbp.de
Thu Feb 21 20:46:57 AEST 1991


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 at informatik.uni-kiel.dbp.de

Rilo Naumann



More information about the Comp.lang.c mailing list