Hello Gilles,

in the meanwhile I added rt_timer_tsc as a second alternative to measure elapsed time. rt_timer_tsc returns values that are a somewhat greater than expected (around 39 ms instead of expected 20 ms), but still reasonable.

On Thu, Nov 26, 2015 at 11:32:57AM +0100, [email protected] wrote:
Hello,

in my xenomai 2.6.3 application I sporadically experience very long execution 
times of
a task that switches back and forth between secondary and primary mode.

I added the following code to measure elapsed and cpu time
//------------- start code snippet ---------------
struct rusage rsgT1;
struct rusage rsgT2;
struct timeval tvT1;
struct timeval tvT2;
gettimeofday(&tvT1, NULL);

Do you observe the same problem with Xenomai 2.6 git head, if you
use clock_gettime(CLOCK_HOST_REALTIME) instead of gettimeofday, at
least for threads running in primary mode ?


I'll give Xenomai 2.6 git head a try.
Thanks for your help.

Regards
Jochen


_______________________________________________
Xenomai mailing list
[email protected]
http://xenomai.org/mailman/listinfo/xenomai

Reply via email to