reactos/lib/sdk/crt/time/difftime.c
Cameron Gutman 29fa274d6d - Create another branch for networking fixes
- TSVN choked repeatedly when attempting to merge ~9000 revs into the branch (tried 3 times on 2 different computers)
 - If someone wants to delete aicom-network-fixes, they are welcome to
 - Lesson learned: Letting a branch get thousands of revs out of date is a horrible idea

svn path=/branches/aicom-network-branch/; revision=44353
2009-12-02 03:23:19 +00:00

23 lines
558 B
C

/*
* COPYRIGHT: LGPL, See LGPL.txt in the top level directory
* PROJECT: ReactOS CRT library
* FILE: lib/sdk/crt/time/difftime.c
* PURPOSE: Implementation of difftime
* PROGRAMERS: Timo Kreuzer
*/
#include <time.h>
#include "bitsfixup.h"
/**
* \name difftime
* \brief Retrurns the difference between two time_t values in seconds.
* \param time1 Beginning time.
* \param time2 Ending time.
*/
double
difftime(
time_t time1, /**< Beginning time */
time_t time2) /**< Ending time */
{
return (double)(time1 - time2);
}