Table of Contents
Previous Section Next Section

difftime

#include <time.h>double difftime(time_t time2, time_t time1);

The difftime( ) function returns the difference, in seconds, between time1 and time2. That is, time2 – time1.

Related functions are localtime( ), gmtime( ), time( ), and asctime( ).


Table of Contents
Previous Section Next Section