Next: , Previous: incTime, Up: Times


6.6 diffTime

return the difference in times between two Time structures.

Synopsis

     #include <suplib/times.h>
     
     
     
Time *diffTime( Time *diff, Time *end, Time *start );

Parameters

Time *diff
where to copy the time differences
Time *end
the ending time
Time *start
the starting time

Description

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.

Returns

It returns a pointer to the internal Time structure upon success. If either of start or end are NULL, it returns NULL.

Author

Diab Jerius