summaryrefslogtreecommitdiff
path: root/gps.h
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-10-26 14:26:00 -0700
committerGary E. Miller <gem@rellim.com>2018-10-26 14:26:00 -0700
commit65f9daadd1d82e7ba77510e5f3a193bbe6d32606 (patch)
tree87f525b69ba9c58584ebb1eaa158eceda001acbd /gps.h
parentb33816fe2b9219d2a9cca80091b6264bf579275f (diff)
downloadgpsd-65f9daadd1d82e7ba77510e5f3a193bbe6d32606.tar.gz
timebase: Add gpsd_gpstime_resolv(), deprecate gpsd_gpstime_resolve()
Part of the move from timestamp_t to timespec_t. The double that is timestamp_t will soon be too imprecise.
Diffstat (limited to 'gps.h')
-rw-r--r--gps.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gps.h b/gps.h
index f867b566..8811a8b9 100644
--- a/gps.h
+++ b/gps.h
@@ -82,6 +82,7 @@ extern "C" {
* ref: https://en.wikipedia.org/wiki/Decimal_degrees
*/
typedef double timestamp_t; /* Unix time in seconds with fractional part */
+typedef struct timespec timespec_t; /* Unix time as sec, nsec */
struct gps_fix_t {
timestamp_t time; /* Time of update */