Index of Section 3 Manual Pages
| Interix / SUA | difftime.3 | Interix / SUA |
difftime(3) difftime(3)
difftime()
NAME
difftime() - compute difference between two times
SYNOPSIS
#include
double difftime (time_t time1, time_t time0)
DESCRIPTION
The difftime(3) function returns the difference between two calendar
times, (time1 - time0), expressed in seconds.
External declarations as well as the tm structure definition are in the
include file.
SEE ALSO
date(1)
asctime(3)
ctime(3)
gettimeofday(3)
gmtime(3)
getenv(3)
localtime(3)
time(2)
USAGE NOTES
The difftime function is thread safe.
The difftime function is not async-signal safe.