summaryrefslogtreecommitdiff
path: root/gpsutils.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2015-02-02 14:44:11 -0800
committerGary E. Miller <gem@rellim.com>2015-02-02 14:44:11 -0800
commit7aed6d1d79289ac2bf15e4509d5f79a84b0dc177 (patch)
tree5297cc3ac0c9b1facc050eea26196c5d217c8945 /gpsutils.c
parentd15d56d99ee950484faa8d273e3d38b955300242 (diff)
downloadgpsd-7aed6d1d79289ac2bf15e4509d5f79a84b0dc177.tar.gz
Comment on loss of precision in timestamp().
timestamp() should not be used where nanoSec count.
Diffstat (limited to 'gpsutils.c')
-rw-r--r--gpsutils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsutils.c b/gpsutils.c
index 31bc4e57..58d12119 100644
--- a/gpsutils.c
+++ b/gpsutils.c
@@ -295,6 +295,8 @@ void gps_merge_fix( /*@ out @*/ struct gps_fix_t *to,
to->eps = from->eps;
}
+/* NOTE: timestamp_t is a double, so this is only precise to
+ * near microSec. Do not use near PPS which is nanoSec precise */
timestamp_t timestamp(void)
{
#ifdef HAVE_CLOCK_GETTIME