The difftime ( ) function shall compute the difference between two calendar times (as returned by time( )): time1. time0. The difftime ( ) function shall return the difference expressed in seconds as a type double.