gettimeofday_rt available?

Jens Köhler jens.koehhler at web.de
Thu Jun 1 09:15:53 CEST 2006


Thank you for the example. For what exactly do I need the double buffering, what  could happen? I guess when RTAI is running, linux kernel functions are stopped. 

Best regards,
Jens



> Jens Köhler wrote:
> > Hi,
> > 
> > I have a linux pc where the time is updated by a ntp server. How can I get the time in a rtai module? I need it for a time stamp(milli seconds).
> > In a mail from 2003 I found the function gettimeofday_rt mentioned. Is it avaible?
> 
> Just the first thing that comes to my mind.
> Use Linux kernel timer function that repeats itself calling gettimeofday 
> at each execution making it available in a global module structure. 
> Adopt a double buffering scheme for the structure, to avoid interfering 
> while it's being updated.
> I think that you can use do_gettimeofday directly.
> 
> Paolo.
> 
> 
> _______________________________________________
> RTAI mailing list
> RTAI at rtai.org
> https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai


______________________________________________________________________
XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!		
Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130





More information about the Rtai mailing list