plan9fox/sys/src/ape/lib/ap/gen/difftime.c
2011-03-30 19:35:09 +03:00

9 lines
148 B
C

#include <time.h>
/* Difference in seconds between two calendar times */
double
difftime(time_t t1, time_t t0)
{
return (double)t1-(double)t0;
}