Hello,
Many UNIX Fortran compilers provide ETIME, a function that returns cpu
elapsed time and also breaks it up into user and system time, but does
not provide wall time. The NIST StopWatch Fortran library uses these
times. I am not sure how much overhead or resolution the Linux ETIMEs
provide (for example Lahey ships one with its compiler), but I am
assuming it is not very good.
Does anyone maybe know of a (relatively) portable C etime-equivalent,
i.e. a timing function that returns at least user and system time, and
preferably also wall-clock elapsed time, suitable to be used in
profiling codes? Searching the web did not seem to give me many useful
things.
Thanks,
Aleksandar
--
__________________________________
Aleksandar Donev
Complex Materials Theory Group (http://cherrypit.princeton.edu/)
Princeton Materials Institute & Program in Applied and Computational Mathematics
@ Princeton University
Address:
419 Bowen Hall, 70 Prospect Avenue
Princeton University
Princeton, NJ 08540-5211
E-mail: [log in to unmask]
WWW: http://atom.princeton.edu/donev
Phone: (609) 258-2775
Fax: (609) 258-6878
__________________________________
|