[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Date: Mon, 05 Nov 2007 06:24:28 -0600
- From: joel.sherrill at oarcorp.com (Joel Sherrill)
- Subject: TOD differences
Leon Pollak wrote:
> Hello, all.
> The question seems to be very simple, but I did not find any answer in docs,
> I have two rtems_time_of_day structures containing two times. How can I
> calculate the difference (in seconds) between them?
Not in the public API. With the movement in 4.8 to struct timespec
in the super core, there are a lot of timespec math routines. There
has always been some TOD to XXX routines.
I have considered making the existing set of time math routines
available via the public API. It isn't especially hard to do but
would require documentation. If this is of interest to the
community, I will move it from my idea list to my someday we might
do this list.
> Thanks ahead.