<div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The original reason was that the Unix wall clock was more accurate<br>
than its CPU clock. If that's changed we should probably (perhaps in a<br>
platform-dependent way) change the default to the most accurate clock<br>
available.<br>
<span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote><br></div>Currently it seems clock_gettime() APIs have nanosecond resolution and OTOH gettimeofday() have microsecond. Other than that, clock_gettime() has a significant advantage: it has per-process timer available which will increase the accuracy of the timing information of the profiled application. <br>
<br>--<br>Sumer Cip<br>