>I was trying to check the exact type of RTIME (return type of rt_timer_read())
>and SRTIME (expectted argument type and return type of rt_timer_ticks2ns) and
>RTIME unsigned long long
>
>
>so theoretically you would need the "%lld" (long long) format for
rt_timer_ticks2ns returned value.
>whereas you would need "%llu" for rt_timer_read() value.
>If you try to print unsigned value with a signed format you'll get
signed "print out" interpretation of the unsigned value, as you said:
"Early I gave (long)(start). The output was negative."
>
>
>
>May be it would be worth having some RTIME_FORMAT and STRIME_FORMAT macros in
>order to avoid that?
Now I modified (unsigned)(long)(long) as return format for start and end. The
output is,
Starting Time : 4295048924899
End time : 4297258900362
(long)(long)rt_timer_ticks2ns(end-start)= -1790994340162556031
-Prakash
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help