difftime---subtract two times
#include <time.h> double difftime(time_t tim1, time_t tim2);
Subtracts the two times in the arguments: `
tim1 - tim2'.
The difference (in seconds) between tim2 and tim1, as a
ANSI C requires
difftime, and defines its result to be in seconds
in all implementations.
difftime requires no supporting OS subroutines.
Go to the first, previous, next, last section, table of contents.