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
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to