diff options
author | Michael Tatarinov <kukabu@gmail.com> | 2011-10-18 10:37:48 +0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-10-20 03:04:42 -0400 |
commit | e102e0dd7049cc79a005891bf85df02b74559804 (patch) | |
tree | b233a1bdac0e5bf2c65221f5fad32fc798f9ed86 /gpsutils.c | |
parent | 50c6425d9147105d6d856588a1fc33259cdefcb7 (diff) | |
download | gpsd-e102e0dd7049cc79a005891bf85df02b74559804.tar.gz |
Tweak for time.
1. Tag "week" must be unsigned integer.
gpsprof -f instrumented works again.
2. Removed tag "uxtime" duplication "time".
3. Used a more precise timestamp.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'gpsutils.c')
-rw-r--r-- | gpsutils.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -290,19 +290,10 @@ void gps_merge_fix( /*@ out @*/ struct gps_fix_t *to, timestamp_t timestamp(void) { - struct timeval tv; - (void)gettimeofday(&tv, NULL); - return (timestamp_t)(tv.tv_sec + tv.tv_usec * 1e-6); -} - -#ifdef __UNUSED__ -timestamp_t realtimestamp(void) -{ struct timespec ts; /*@i2@*/(void)clock_gettime(CLOCK_REALTIME, &ts); /*@i3@*/return (timestamp_t)(ts.tv_sec + ts.tv_nsec * 1e-9); } -#endif /* __UNUSED__ */ time_t mkgmtime(register struct tm * t) /* struct tm to seconds since Unix epoch */ |