GCC Code Coverage Report | |||||||||||||||||||||
|
|||||||||||||||||||||
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 |
} |
Generated by: GCOVR (Version 3.3) |