home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!umn.edu!math.fu-berlin.de!uniol!majestix.informatik.uni-kiel.dbp.de!gonzo!erik
- From: erik@sfb313.uni-kiel.dbp.de (Erik Cickovskis)
- Newsgroups: comp.unix.internals
- Subject: Measuring the time of a function
- Keywords: time function
- Message-ID: <356@gonzo.sfb313.uni-kiel.dbp.de>
- Date: 2 Nov 92 07:12:38 GMT
- Organization: SFB-313 University of Kiel, Germany
- Lines: 25
-
-
- Is it possible to evaluate the time a function needs to execute in
- C and UNIX?
-
- For my thesis I am writing C programms doing some mathematical
- optimaziation stuff. I would like to know what time a function
- needs, which executes the critical calculations.
-
- The problem is, now, that the functions in consideration need
- about some milliseconds to execute, and I need to be quite
- accurate.
-
- So what can I do to prevent kernel execution time to be measuered
- with my function execution time. I thougt about it a lot and tend
- to think it is impossible in a time sharing environment, but who
- knows...
-
- Realise that I don't want the whole programm to be timed, just
- one function in it.
-
- Any hints welcome, Erik
- --
- ------------------------------------------------------
- Erik Cickovskis erik@sfb313.uni-kiel.dbp.de
- ------------------------------------------------------
-