On 02/29/2012 06:29 PM, Charles Lesire-Cabaniols wrote:
> Hi guys,
>
> I have installed a Debian+Xenomai (2.6.0) OS on my Gumstix Overo.
>
> I want to evaluate the execution time of a simple program, executed as a
> real-time thread.
>
> I definitely wonder about which functions to use, as I have completely
> inconsistent measures.
> I have tried using rt_timer_read, rt_timer_tsc, clock_gettime.
> I also directly read the CNNT register with ARM instructions (which is the
> only one I think correct) in order to have a (good?) reference.
> (...)
> What am I doing wrong?
So, you should printf("%Lu %Lu\n", rt_timer_read(), rt_timer_tsc());
Not printf("%lu", ...)
--
Gilles.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help