A GPSD time warp
A GPSD time warp
Posted Aug 6, 2021 18:18 UTC (Fri) by HenrikH (subscriber, #31152)In reply to: A GPSD time warp by cpitrat
Parent article: A GPSD time warp
My problem is that I didn't know at the time that the GPS signal is guaranteed to be monotonically incremental, so I saw an article about possible negative leap seconds and one of the solutions being to increase the number of bits (which I missed was for the number of weeks and not for the leap second counter so to speak).
If the number can only increment then there is zero differences between a separate rollover counter and increasing the number of bits of the actual value. If they can decrease however there is a world of difference, with a separate rollover counter you can go from 110000000000 to 111111111111 and deduct that time decreased by one second and not that you had a packet loss for 1023 seconds.
