Please keep the conversation on the list. I will simply not answer
the next mail you send me privately.
On Wed, Nov 19, 2014 at 12:01:55PM +0000, Terje Frøysa wrote:
> Ok Gilles, thanks.
>
> The glibc confirms that the tv_nsec is a long int (4-bytes in ARM)
> while the time returned by the driver is 8-byte (utint64_t).
Yes tv_nsec is 4 bytes
but tv_sec is 4 more bytes god damn it
1000000000ULL * ts->tv_sec + ts->tv_nsec
will give you an 8 bytes values
The glibc documentation says:
The struct timespec structure represents an elapsed time. It is declared in
time.h and has the following members:
long int tv_sec
This represents the number of whole seconds of elapsed time.
long int tv_nsec
This is the rest of the elapsed time (a fraction of a second), represented
as the number of nanoseconds. It is always less than one billion.
Did you even bother to read that documentation?
Are you for real? Or is this a prank?
Please keep the conversation on the list. I will simply not answer
the next mail you send me privately.
--
Gilles.
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai