Hello, On the last 2.5 kernels the time we get with gettimeofday() is different from the time we set with settimeofday(). I've written a small test case which should demonstrate that bug. It simply sets the time to the current time and then reads a second time the time. The difference between the two values should be only the length of the syscalls. Basically on a 2.4.19 I get this kind of result: # ./a.out requested: 1047481209s 671081ns new: 1047481209s 671083ns diff is 0.000002000sec Fine. But on a 2.5.64 I have something like that: # ./a.out requested: 1047572128s 2564ns new: 1047572127s 0239ns diff is -1.232526000sec gettimeofday() gave a time BEFORE the time we set! First, I've corrected an obvious problem due to the change of the returned value of gettimeoffset() from usec to nsec in settimeofday(). David, I think you can apply it, at least :-) However, now, it still gives negative difference: # ./a.out requested: 1047572128s 2564ns new: 1047572128s 1588ns diff is -0.000976000sec That's better but there is still something... Can anyone reproduce this bug? Any idea about what may cause this shifted results? I don't understand what does the line in settimeofday(): nsec -= (jiffies - wall_jiffies ) * (1000000000 / HZ); Maybe there is some error there. Removing it gives positive difference but too big to look correct! Any suggestion would be welcomed. Eric