3 ms·
While 32-bit time_t lasts for roughly 68 years, 64-bit time_t lasts for roughly 292270958501 years.
by jorams 8y ago
While 32-bit time_t lasts for roughly 68 years, 64-bit time_t lasts for roughly 292270958501 years.
- perl4ever 8y agoWell, what if you want to measure small fractions of a second? If your timestamps have significantly higher resolution than a nanosecond, you've used up your extra 32 bits. And there is technology that operates on much shorter intervals, like about 10^-18 seconds. While it may not be very relevant today, if you really want to future proof things for the next 1000 years, I think you need around 90 bits or more. "12 attoseconds is the world record for shortest controllable time" https://phys.org/news/2010-05-attoseconds-world-shortest.html https://phys.org/news/2010-05-attoseconds-world-shortest.htm... After further consideration, the ultimate timestamp would be able to denote any point in time measured in Planck units (10^-44 seconds) between the beginning of the universe and its ultimate heat death in about 3 x 10^21 seconds. Therefore 218 bits should be enough for anyone.