From 271801553f4cd8da3b12c43a73f5a965cb1153f6 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Thu, 4 Jun 2015 16:21:34 -0700 Subject: Remove duplicate definition of timespec_diff_ns() Plus a logical reordering of things so more timespec stuff is in timespec.h --- ppsthread.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'ppsthread.h') 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 -- cgit v1.2.1