mp-units/latest/blog/2025/06/16/introducing-absolute-quantities/ #738
Replies: 2 comments 6 replies
-
| First of all, I greatly appreciate the work that has been done here and I am quite sure that the C++ world will benefit greatly from it. A core idea of V3 is ‘[...] absolute quantities share properties of both deltas and points [...]’. Probably a minor detail: |
Beta Was this translation helpful? Give feedback.
-
| I wrote a time-specific C++ metrology library many years ago, with the same concepts of deltas and absolute values. I came across a couple of interesting points which may interest you. One thing that comes up with time specific points are leap seconds. These cause discontinuities in the time scale. In particular, deltas across these points require consulting a leap second table to see if the delta spans one or more discontinuities, and the length must be adjusted if so. Additionally, for a general solution, in the past, the frequency of time was adjusted to avoid leap seconds, and this frequency change causes the delta calculation to differ. Finally, the time library should know if it is near a leap second opportunity, and if so, it needs to fetch the current leap second table from some source, such as GNSS. Additionally, if a delta calculation into the future spans a potential leap second opportunity, a similar fetch must be done, although if it's far enough in the future, then the computation has to be marked as approximate, rather than exact. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
mp-units/latest/blog/2025/06/16/introducing-absolute-quantities/
The quantities and units library for C++
https://mpusz.github.io/mp-units/latest/blog/2025/06/16/introducing-absolute-quantities/
Beta Was this translation helpful? Give feedback.
All reactions