Van Snyder wrote:
> Many years ago, for DOS on x86
On an x86 under Linux, as of kernel 2.4.something, there is a way to get
high-resolution timing (see http://www.cs.wisc.edu/paradyn/libhrtime/).
I was not looking for something that precise though (since the overhead of all the
other calls to set up the timer, particularly in something like stopwatch, is rather
expensive in itself). If one is really interested in precise profiling, use Paradyn or
gprof or something alike. I was more interested in something that like ETIME provides
user and system time, and also wall time, in a simple and portable interface, to be
used in my Fortran execution handling user-friendly (but high-overhead) facility.
There is this proposal:
http://www.cs.orst.edu/~pancake/ptools/ptr/flyer.html
but there seems to be no Linux implementation of this...
Thanks,
Aleksandar
|