From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4B20F933.60703@domain.hid> Date: Thu, 10 Dec 2009 14:35:47 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <4B20D066.5070904@domain.hid> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Problem with gettimeofday List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Soboljew, Patrick" Cc: xenomai@xenomai.org Soboljew, Patrick wrote: >>> Anybody an idea? >> You should be using clock_gettime(CLOCK_REALTIME). In case you >> insist on using gettimeofday, see: >> >> http://www.xenomai.org/index.php/Porting_POSIX_applications_to_Xenomai#Timing_services. > > It's not me who insists on that call but this framework :). But > thanks for your help. The solution thats provided with the link would > help I think. I was also interested what things can cause the > difference between both functions on real hardware and in the vmware > image e.g. kernel config parameters. Xenomai keeps synchronized with Linux, if Linux uses the same clocksource as xenomai i.e. the tsc, if it does not update the wallclock time after the boot, and if it does not use NTP. -- Gilles