4 ms·
Interesting. I would have thought that fixed-point would make more sense for a time quantity. If you use a 64-bit integer to represent picoseconds, it gives you
by mitthrowaway2 2y ago
Interesting. I would have thought that fixed-point would make more sense for a time quantity. If you use a 64-bit integer to represent picoseconds, it gives you a time range of about 18 million years.
- Dylan16807 2y agoYou calculated something wrong. 2^64 picoseconds is only half a year. Once you decide you need to go over 64 bits, the exact data type is largely a matter of convenience, and I can easily see two doubles being more convenient than either a quad or a 128-bit integer. You have more than 100 bits of precision in such a scheme, and it runs pretty fast.
- mitthrowaway2 2y agoAh good catch, my bad! 18 million seconds, not 18 million years. Oops =)