summaryrefslogtreecommitdiff
path: root/ppsthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'ppsthread.h')
-rw-r--r--ppsthread.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/ppsthread.h b/ppsthread.h
index 58d4b31a..b37e739c 100644
--- a/ppsthread.h
+++ b/ppsthread.h
@@ -16,11 +16,6 @@ struct timedelta_t {
};
#endif /* TIMEDELTA_DEFINED */
-/* difference between timespecs in nanoseconds */
-/* int is too small, 32 bit long is too small, avoid floats */
-/* MUST be long long to maintain precision on 32 bit code */
-#define timespec_diff_ns(x, y) (long long)(((x).tv_sec-(y).tv_sec)*1000000000LL+(x).tv_nsec-(y).tv_nsec)
-
/*
* Set context, devicefd, and devicename at initialization time, before
* you call pps_thread_activate(). The context pointer can be used to