cppreference.com > Standard C Date & Time > difftime
difftime
Syntax:
  #include <time.h>
  double difftime( time_t time2, time_t time1 );

The function difftime() returns time2 - time1, in seconds.