Hi Pan Xing, If memory serves, :), gettimeofday() times not only the process you are running but everything else as well (time taken by other processes an so on, ...) ... This is important consideration of course but it tends to make timing of the process your concerned about quite variable depending upon how many other processes you are running ... Al > Pan Xing wrote: > > Hi! All. > I just got the trick. It is because I use the gettimeofday() > for timing, instead of using getrusage(), > which is prefered in the comments of that program. > > Now all OK! All the odd gone, except that I still dont know > why gettimeofday() will interfere > the results. > > Best Wishes. > Pan Xing.