All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] RT timer help
@ 2006-07-13 12:03 Kim Chuan Lim
  2006-07-13 12:14 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 12+ messages in thread
From: Kim Chuan Lim @ 2006-07-13 12:03 UTC (permalink / raw)
  To: xenomai

Hi all,

I am a bit confuse with the rt timer clock tick.
printf("rt_timer_ns2tsc(1000000000) == %lld
\n",rt_timer_ns2tsc(1000000000));//1second
rt_timer_ns2tsc(1000000000) == 1193182;

rt_task_set_periodic(NULL, TM_NOW, 1193182LLu);
while (1) {
       rt_task_wait_period(NULL);
       /* real-time jobs */
	k_time = rt_timer_read();
	printf("Hello Jan!! count_%d k_time_%llu\n",++count,k_time);
   }

The printf appear very fast rather than 1ms.

May i know i have make what mistake?

Regards,
Kim Chuan.


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

end of thread, other threads:[~2006-07-14 10:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-13 12:03 [Xenomai-help] RT timer help Kim Chuan Lim
2006-07-13 12:14 ` Gilles Chanteperdrix
2006-07-13 14:37   ` Kim Chuan Lim
2006-07-13 14:47     ` Gilles Chanteperdrix
2006-07-13 16:02       ` Kim Chuan Lim
2006-07-13 16:05         ` Gilles Chanteperdrix
2006-07-13 16:46           ` Kim Chuan Lim
2006-07-13 16:51             ` Gilles Chanteperdrix
     [not found]               ` <e325d110607131026qdb0aac8p53bb9f1ddad58181@domain.hid>
2006-07-13 19:24                 ` Gilles Chanteperdrix
2006-07-14  8:24                   ` Kim Chuan Lim
2006-07-14  8:51                     ` Jan Kiszka
2006-07-14 10:13                       ` Kim Chuan Lim

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.