DIFFTIME(3) NEWLIB DIFFTIME(3)NAME
9.4 `difftime'--subtract two times
SYNOPSIS
#include <time.h>
double difftime(time_t TIM1, time_t TIM2);
DESCRIPTION
Subtracts the two times in the arguments: ``TIM1 - TIM2''.
RETURNS
The difference (in seconds) between TIM2 and TIM1, as a `double'.
PORTABILITY
ANSI C requires `difftime', and defines its result to be in seconds in
all implementations.
`difftime' requires no supporting OS subroutines.
SEE ALSOdifftime is part of the library. The full documentation for is main‐
tained as a Texinfo manual. If info and are properly installed at your
site, the command
info
will give you access to the complete manual.
NEWLIB April 2010 DIFFTIME(3)