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

/** find difference between two times **/

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

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

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