System call conversion for year 2038
System call conversion for year 2038
Posted May 12, 2015 9:14 UTC (Tue) by arnd (subscriber, #8866)In reply to: System call conversion for year 2038 by Karellen
Parent article: System call conversion for year 2038
For interfaces that deal with timeouts (e.g. clock_nanosleep()), or current time (e.g. clock_gettime()), using unsigned 64-bit nanoseconds gives us until 2554, over 500 years before we have to come up with something else. If we can gain a noticeable performance improvement using the nanosecond based interface until then, it should be worth the effort.
Posted May 13, 2015 3:08 UTC (Wed)
by eternaleye (guest, #67051)
[Link]
Furthermore, at that point "now" could be defined in an offset-ish way - use point time for "when we booted" and interval time for "...and how long has it been since then?"
But that'd be an even more drastic API change, and thus deeply unlikely.
System call conversion for year 2038
