On Tue, May 15, 2007 at 10:32:09PM +0200, J.C. Pizarro wrote:
> For the current trunk of GCC, thinking about
> the related thing of gprof and option -pg of GCC,
> 
> it's important to output correctly the data with non-fatal accuracy,
> preferably 4 digits decimal instead of 2, e.g 0.0000 ms instead of 0.00 s.

On many platforms, there is only a timer tick 60 times per second.
Reporting the result to four places will still give a zero if no
timer tick occurred during the execution of a given function.
The output is printing to the approximate precision of the data,
so printing two places is the correct thing to do.

For more accuracy, you need to run the program for a longer time.

Most of your queries would be better suited to gcc-help than to gcc,
because you don't understand the compiler well enough to make
useful contributions to its development.

Reply via email to