I was just playing with some of the timer functions to estimate the real time and cpu time consumed by a code using clock() and gtod(). In other case, I simply type time ./object file name. However, I was surprised to see the big differences (in one case 51 ms, other like 82 ms) in both the techniques. So, I was wondering when you estimate cpu time and real time, which method is more likely the accurate one?
Thanks.