difftime()

compute difference between two calendar times 

Function


SYNOPSIS

#include <time.h>

double difftime(time_t time1, time_t time0);


DESCRIPTION

The difftime() function computes the difference between two calendar times. difftime() returns the difference (time1-time0) expressed in seconds as a double-precision floating point number. This function is provided because there are no general arithmetic properties defined for type time_t.


PARAMETERS

time1 

Is the ending time.

time0 

Is the beginning time.


RETURN VALUES

The difftime() function returns the difference expressed in seconds as a double-precision floating point number.


CONFORMANCE

ANSI/ISO C Standard (ISO/IEC 9899-1989)


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
asctime(), clock(), ctime(), gmtime(), localtime(), mktime(), strftime(), time(), utime()


PTC MKS Toolkit 10.4 Documentation Build 39.