Pondering 2038 - a suggestion for an improved time_t
Pondering 2038 - a suggestion for an improved time_t
Posted Aug 19, 2013 9:10 UTC (Mon) by sdalley (subscriber, #18550)In reply to: Pondering 2038 - a suggestion for an improved time_t by Cyberax
Parent article: Pondering 2038
But leap seconds would still be broken.
And atomicity becomes (even) more of an issue once you exceed 64 bits. Tick precision down to 100ns avoids this.
When you care about the last nanosecond, you usually don't care at all about the epoch. Why have an excessively large size in order to accommodate both? For nanoseconds, we can just stick to using clock_gettime(CLOCK_MONOTONIC,).