diff options
author | Gary E. Miller <gem@rellim.com> | 2015-02-02 14:44:11 -0800 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2015-02-02 14:44:11 -0800 |
commit | 7aed6d1d79289ac2bf15e4509d5f79a84b0dc177 (patch) | |
tree | 5297cc3ac0c9b1facc050eea26196c5d217c8945 /gpsutils.c | |
parent | d15d56d99ee950484faa8d273e3d38b955300242 (diff) | |
download | gpsd-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |