Pi seconds equals one nanocentury

Duff’s rule says that a nanocentury is about π seconds. Assuming a year is 365.25 days, there are 3,155,760,000 seconds in a century. So a nanocentury, one billionth of a century, is 3.15576 seconds, roughly π seconds.

This odd fact is surprisingly useful in back-of-the-envelope calculations. In order to determine whether something is computationally feasible, you have to go from how much work can be done in a second to how much work could be done on calendar time scales. For example, suppose some operation is going to take 1015 steps and you can carry out 106 operations per second. How long would that take? Obviously 109 seconds, but how long is that in familiar units of time? According to Duff’s rule it’s about a third of a century so about 30 years.

Since the square root of 10 is approximately π, you could say there are about square root of 10 seconds in a nanocentury. In fact, the square root of 10 is 3.162 and so it’s closer to the number of seconds in a nanocentury than π is. The advantage to square root of 10 is that it is exactly half an order of magnitude, 101/2. So you could say a century is 9.5 orders of magnitude longer than a second, or a year is 7.5 orders of magnitude longer than a second. Or perhaps more memorably,

A year is about 30 megaseconds.

If you interpret “mega” as 220 rather than 106 this approximation gets even better. (Technically, this would be 30 mebiseconds. SI distinguishes “mega” = 106 = 1,000,000 from “mebi” = 220 = 1,048,576, though the latter isn’t widely used. Most people have either never heard of the new prefixes like “mebi” or think they sound silly and prefer the ambiguity of using “mega” to mean two slightly different things. See Kibi, mebi, gibi.)

I wrote briefly about Duff’s rule a while back in the post Three rules of thumb. That post also includes a great video of Grace Hopper explaining to David Letterman her rule of thumb that light travels about one foot in a nanosecond.

4 thoughts on “Pi seconds equals one nanocentury

  1. This reminds me of the fact (more amusing than useful) that a typical college lecture often lasts for 50 minutes, which is about a microcentury.

  2. A girlfriend threw me a gigasecond party. We met after my 31st birthday, and I made some sort of joke on our second date about her being so young, after a couple of pop-culture references that underscored our 7-year age difference. She countered by asking how old I was, and I flippantly answered that I was just short of a billion seconds. (I’d been idly using the calculation to test date and time conversions in a database application).

    She decided to do something off-the-wall. She asked a friend for exact time and date of my birth, and arranged a small party, complete with a handmade banner that looked like an odometer rolling over from “0999999999” to “1000000000”. When I thanked her for the surprise she said, “as long as you NEVER tell me, or ANYONE else, when I turn a billion seconds old.”

    We’ve been married 15 years almost half a gigasecond now.

Comments are closed.