difftime

Computes the difference, in seconds, between the two times specified by the time1 and time2 arguments.

Format

#include  <time.h>

double difftime  (time_t time2, time_t time1);

Arguments

time2
A time value of type time_t.
time1
A time value of type time_t.

Description

The type time_t is defined in the <time.h> header file as follows:
typedef unsigned long int time_t

Return Value
time2 - time1 in seconds expressed as a double. 


Previous Page | Next Page | Table of Contents | Index