HP C/iX Library Reference Manual (30026-90004)
Chapter 5 131
HP C/iX Library Function Descriptions
difftime
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