summaryrefslogtreecommitdiff
path: root/ppsthread.h
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2015-06-04 16:21:34 -0700
committerGary E. Miller <gem@rellim.com>2015-06-04 16:21:34 -0700
commit271801553f4cd8da3b12c43a73f5a965cb1153f6 (patch)
tree3cee7cb211aeb1dc50fe29bd062aed5ffdef7716 /ppsthread.h
parent09200839cc0c8c8418adae9a5347b0a1fd5eacdc (diff)
downloadgpsd-271801553f4cd8da3b12c43a73f5a965cb1153f6.tar.gz
Remove duplicate definition of timespec_diff_ns()
Plus a logical reordering of things so more timespec stuff is in timespec.h
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