All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Question about getting system time
@ 2010-05-13 22:14 Abhijit Majumdar
  2010-05-14  5:44 ` Gilles Chanteperdrix
  2010-05-14 10:34 ` Andreas Glatz
  0 siblings, 2 replies; 35+ messages in thread
From: Abhijit Majumdar @ 2010-05-13 22:14 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 923 bytes --]

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

 


[-- Attachment #2: Type: text/html, Size: 4770 bytes --]

^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2010-05-27 15:35 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-13 22:14 [Xenomai-help] Question about getting system time Abhijit Majumdar
2010-05-14  5:44 ` Gilles Chanteperdrix
2010-05-14 10:34 ` Andreas Glatz
2010-05-14 10:42   ` Gilles Chanteperdrix
2010-05-17 16:27     ` Steve Deiters
2010-05-17 16:52       ` Jan Kiszka
2010-05-17 17:05         ` Steve Deiters
2010-05-17 17:13           ` Jan Kiszka
2010-05-17 18:02             ` Josh Karch
2010-05-17 18:23               ` Jan Kiszka
2010-05-17 18:51               ` Thomas Lockhart
2010-05-17 22:48             ` Steve Deiters
2010-05-17 23:50               ` Gilles Chanteperdrix
2010-05-17 23:53               ` Gilles Chanteperdrix
2010-05-18  0:23                 ` Steve Deiters
2010-05-18  7:04                   ` Jan Kiszka
2010-05-18  7:59                     ` Gilles Chanteperdrix
2010-05-18  8:38           ` Wolfgang Mauerer
2010-05-18 10:11             ` Gilles Chanteperdrix
2010-05-18 12:11               ` Wolfgang Mauerer
2010-05-18 12:41                 ` Gilles Chanteperdrix
2010-05-18 14:58                   ` [Xenomai-core] " Wolfgang Mauerer
2010-05-18 15:07                     ` Gilles Chanteperdrix
2010-05-18 18:41                     ` Gilles Chanteperdrix
2010-05-18 20:23                       ` Wolfgang Mauerer
2010-05-18 21:19                         ` Gilles Chanteperdrix
2010-05-18 22:09                           ` Jan Kiszka
2010-05-18 22:24                             ` Gilles Chanteperdrix
2010-05-18 23:02                               ` Jan Kiszka
2010-05-19  5:49                                 ` Gilles Chanteperdrix
2010-05-19  7:11                                   ` Jan Kiszka
2010-05-21  8:55                                     ` Gilles Chanteperdrix
2010-05-27 15:35                                       ` Wolfgang Mauerer
2010-05-19 19:16                                   ` Daniele Nicolodi
2010-05-19 20:55                                     ` Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.