Xref: utzoo comp.lang.c:36360 comp.benchmarks:406 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!unido!majestix!rn From: rn@informatik.uni-kiel.dbp.de (Rilo Nauman) Newsgroups: comp.lang.c,comp.benchmarks Subject: measuring runtimes Keywords: runtimes Message-ID: <2435@alf.informatik.uni-kiel.dbp.de> Date: 21 Feb 91 09:46:57 GMT Followup-To: comp.lang.c Organization: Universitaet Kiel, Germany Lines: 20 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 Brought to you by Super Global Mega Corp .com