Hi,

We had a similar problem. We solved it by compiling the native skin as a module 
and loading it _after_ the kernel has been syncronized with the real-time clock 
chip.

Andreas


________________________________________
From: xenomai-help-boun...@gna.org [xenomai-help-boun...@gna.org] On Behalf Of 
Abhijit Majumdar [abhijit.majum...@pivotalsys.com]
Sent: Thursday, May 13, 2010 6:14 PM
To: xenomai-help@gna.org
Subject: [Xenomai-help] Question about getting system time

Hi folks

I am facing a strange problem in getting system time.

My requirement:

 In a hard real time task I need to get the current system time and store it in 
a structure. Later at some point of time a java application a windows system is 
supposed to convert it into user-readable date-time format. I am using 
rt_timer_tsc2ns(rt_timer_read()) to get the current time.

Problem:

However the java application prints a date in 1980 (I converted nanosec to 
millisec before using java API). I kind of expected rt_timer_tsc2ns to return 
nanoseconds from 1st Jan 1970 because it is common for programming tools and 
languages, although I must admit that I did not see that in the xenomai API 
documentation.

Am I doing something wrong? Should I have to compile the kernel with some 
specific parameter?

Any help will be appreciated.

thanks
Abhijit


_______________________________________________
Xenomai-help mailing list
Xenomai-help@gna.org
https://mail.gna.org/listinfo/xenomai-help

Reply via email to