double difftime ( time_t timer2, time_t timer1 );
Return difference between two times.
Calculates the time difference between timer1 and timer2 in seconds.
The difference in second between the two times specified.
Defined in ANSI-C.
/* difftime example */
char szInput ;
printf ("Please, enter your name: ");
dif = difftime (end,start);
printf ("Hi %s.\n", szInput);
printf ("You have taken %.2lf seconds to type your name.\n", dif );
Please, enter your name: Juan Soulie
Hi Juan Soulie.
You have taken 3.00 seconds to type your name.
asctime, gmtime, localtime, time