summaryrefslogtreecommitdiff
path: root/src/time/difftime.c
blob: 9550306c7e03db0193123c4d1cd5d3bd745a67e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <time.h>
#include "_safety.h"

/** find difference between two times **/

double difftime(time_t time1, time_t time0)
{
	SIGNAL_SAFE(0);
	return (double)time1 - (double)time0;
}

/***
subtracts ARGUMENT(time0) from ARGUMENT(time1).
***/

/*
RETURN_ALWAYS(the difference in seconds)
STDC(1)
*/