Re: Portable time profiling function



Bin Chen wrote:
I want to write down the time the CPU run across a line of my program,
with milli second precision. Which function can I use? I know there is
a function of gettimeofday() but I think it is too heavyweight,
gettimeofday() seems will read many disk files...

You're making an assumption there. I just did a quick test and it didn't
appear to read any disk files at all.

- Logan
.



Relevant Pages

  • Re: Portable time profiling function
    ... with milli second precision. ... a function of gettimeofdaybut I think it is too heavyweight, ... gettimeofday() seems will read many disk files... ... which may be considered light-weight. ...
    (comp.unix.programmer)
  • Re: Portable time profiling function
    ... I want to write down the time the CPU run across a line of my program, ... with milli second precision. ... gettimeofday() seems will read many disk files... ... I myself use hardware timers present at my system, ...
    (comp.unix.programmer)
  • Re: Portable time profiling function
    ... I want to write down the time the CPU run across a line of my program, ... with milli second precision. ... gettimeofday() seems will read many disk files... ... Ivan Novick ...
    (comp.unix.programmer)
  • Portable time profiling function
    ... I want to write down the time the CPU run across a line of my program, ... with milli second precision. ... gettimeofday() seems will read many disk files... ...
    (comp.unix.programmer)