DIFFTIME - compute difference of two time numbers.

(ANSI Standard)

Usage:

#include <time.h>
diff = difftime(time1,time2);

Where:

time_t time1,time2;
are two time numbers as returned by "time".
double diff;
is the number of seconds between the two times ("time1-time2").

Description:

"difftime" calculates the number of seconds between two time numbers. The result of "difftime" is always double. Note that this is the only portable way to calculate the difference between two time numbers. There is no uniformity in how time numbers express times on various systems.

See Also:

expl c lib time

expl c lib ctime

Copyright © 1996, Thinkage Ltd.