3 ms·
I really hope that traffic enforcement systems don't use timers that know the date.
by adrianN 5y ago
I really hope that traffic enforcement systems don't use timers that know the date.
- debarshri 5y agoIt is not just for timer, as part of evidence you also have to capture when that event occurred. There it does capture the date.
- q3k 5y agoYou should record the event time separately [1] from the beginning/end of the measurement period - the first as a time instant in UTC ('wall clock'), the latter as a difference between two values of a guaranteed monotonically increasing clock. This is something you need to do regardless of leap seconds to handle things like NTP kicking in to adjust your local wall clock time. [1] - Depending on the programming environment, these might be either different timestamp types recorded separately or converted appropriately to reflect different uses, or a smart combination type like time.Time in Go.