/* * difftime - compute the difference between two calendar times */ /* $Header$ */ #include double difftime(time_t time1, time_t time0) { /* be careful: time_t is unsigned */ if (time0 > time1) return - (double) (time0 - time1); else return (double) (time1 - time0); }