#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( ).

C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539 © 2008-2017.
If you may any questions please contact us: