14 Jan 2009 22:26
Re: clock drift
Gilles Chanteperdrix <gilles.chanteperdrix <at> xenomai.org>
2009-01-14 21:26:46 GMT
2009-01-14 21:26:46 GMT
Rob Wheeler wrote: > Hello, > > I was recently debugging a problem in our code base and tracked the > issue down to differences between calling gettimeofday() from our > non-realtime code and calling clock_gettime() from our realtime > control loop. A little poking around with Google led me to clocktest > program in the Xenomai testsuite. We are routinely seeing differences > of around 4 minutes (~240 seconds) between gettimeofday() and > clock_gettime() immediately after a reboot. The clocks continue to > drift apart (or together) at the rate of about 50us/s. Hi Rob, when chasing unrelated issues, I found what could be the cause of the original 4 minutes difference. The bug is fixed in the svn repository. I think it goes in the "very stupid bugs" category. Well, tooks only 3 monthes... Regards. -- -- Gilles.
RSS Feed