Next: stringTime, Previous: incTime, Up: Times
return the difference in times between two Time
structures.
#include <suplib/times.h>Time *diffTime( Time *diff, Time *end, Time *start );
Time *diff
- where to copy the time differences
Time *end
- the ending time
Time *start
- the starting time
diffTime
fills an internal Time
structure with the
difference in times between two passed Time
structures (
end
- start
). The internal structure will be
overwritten by the next call to diffTime
. If the diff
argument is not NULL
, the difference data are copied there as
well.
It returns a pointer to the internal Time
structure upon success.
If either of start
or end
are NULL
, it returns
NULL
.
Diab Jerius