/*------------------------------------------------------------------------
 * filename - difftime.c
 *
 * function(s)
 *        difftime - computes difference between two times
 *-----------------------------------------------------------------------*/

/*
 *      C/C++ Run Time Library - Version 6.5
 *
 *      Copyright (c) 1987, 1994 by Borland International
 *      All Rights Reserved.
 *
 */

#include <_math.h>
#include <time.h>

/*---------------------------------------------------------------------------*

Name            difftime - computes difference between two times

Usage           #include <time.h>
                double difftime(time_t time2, time_t time1);

Prototype in    time.h

Description     difftime  calculates  the  elapsed  time,  in seconds, from
                time1 to time2

Return value    difftime returns the result of its calculation as a double

*---------------------------------------------------------------------------*/
double difftime(time_t time2, time_t time1)
{
        return (double) time2 - time1;
}
