GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: lib/libc/time/difftime.c Lines: 0 1 0.0 %
Date: 2017-11-13 Branches: 0 0 0.0 %

Line Branch Exec Source
1
/*	$OpenBSD: difftime.c,v 1.12 2015/02/10 01:24:28 tedu Exp $ */
2
/* This file is placed in the public domain by Matthew Dempsky. */
3
4
#include "private.h"
5
6
#define HI(t) ((double)(t & 0xffffffff00000000LL))
7
#define LO(t) ((double)(t & 0x00000000ffffffffLL))
8
9
double
10
difftime(time_t t1, time_t t0)
11
{
12
	return (HI(t1) - HI(t0)) + (LO(t1) - LO(t0));
13
}