3 ms·
If I understood the text correctly, AWS adjustments are "linear" and not curved like in the Google adjustment: lie(t) = (1.0 - cos(pi * t / w)) / 2.0 describe
by acqq 12y ago
If I understood the text correctly, AWS adjustments are "linear" and not curved like in the Google adjustment:
lie(t) = (1.0 - cos(pi * t / w)) / 2.0
described here:
http://googleblog.blogspot.com.au/2011/09/time-technology-and-leaping-seconds.html http://googleblog.blogspot.com.au/2011/09/time-technology-an...
I think I'd prefer the curved one. I don't see the advantages of the linear one except the less human capability needed to implement and test it.
- bjackman 12y agoWhat are the advantages of the curved one? I've never worked on an application that would care about this kind of thing, so I'm struggling to imagine the implications.
- tarpherder 12y agoI'm guessing some applications may be sensitive to a sudden change in second duration and they probably argued that a gradual introduction of change would trip up the least amount of programs.
- TheLoneWolfling 12y agoSuppose you have something with a watchdog that times something every time it runs to check that nothing suddenly gets slower / faster. A backup or something. Let's suppose that the amount of time it takes to run is relatively small. Now suppose between two runs the linear decrease starts. All of a sudden the second run appears to be slower than it is by a constant factor. With a curved change, this effect still happens, but it's less for smaller time intervals.
- acqq 12y agoThe shortest explanation would be that the curve can be introduced to lower the average difference between the official time and the adjusted time. bjackman "never worked on an application that would care about this kind of thing," fine, but for those that do care, the curve is obviously better.
- TheLoneWolfling 12y agoAnother way to look at it: the curve keeps the second derivative of time bounded. Which in turn keeps anything analogous to acceleration bounded.
- acqq 12y agoGood point, thanks! Here's the example picture of the curve: http://i.imgur.com/oYboqSL.png http://i.imgur.com/oYboqSL.png