difftime [ HP C/iX Library Reference Manual ] MPE/iX 5.0 Documentation
HP C/iX Library Reference Manual
difftime
Computes the difference between two times.
Syntax
#include <time.h>
double difftime (time_t time2, time_t time1);
Parameters
time2 A time, in time_t format.
time1 A time, in time_t format.
Return Values
x Returns time2 - time1 in seconds as a double.
Description
The difftime function computes the time difference between time2 and
time1 in seconds. The time2 parameter should be the later of the two
times.
See Also
time(), ANSI C 4.12.2.2
MPE/iX 5.0 Documentation