Defined in header
double difftime( time_t time2, time_t time1 );
Computes difference between two calendar times as Template:rlpt objects (time2 - time1) in seconds.
|time1, time2||-||times to compare|
Difference between two times in seconds
On POSIX systems, std::time_t is measured in seconds, and
difftime is equivalent to arithmetic subtraction, but C++ (and C) allows fractional units for
Wall time passed: 7 s.
C documentation for difftime