How long does it take for a computer to count to a billion?

This was a question that came up after discussing a business worth over $ 20 trillion with a colleague, and I couldn't imagine what the cash amount would be. To get the idea, we calculated how many hundreds of dollars would be needed to go around the globe. I think the answer was about $ 240 million, or about $ 24 billion. It's a lot of money. How long does it take a person to count so much money? No one can say for sure. But it can give a very good impression that computers need to count in the billions. Simply put, there are no other actions in between. To do this, write a simple code that measures the time it takes to count up to 1 million, perform a simple calculation to estimate the time it takes to count to different values, and use methods to make it easier to view. Display the result. Thanks to the kindness of StackOverflow.

How to count

how long to count to a million is what we learn early in life and tend to dismiss it as a trivial skill without paying attention to math. The recent US presidential election shows that this is not the case. Most of the voting disputes last fall were about what to count rather than count, but the counting process itself was inaccurate and unreliable. Counting and recounting groups of the same ballot rarely result in the same total twice. Counting is clearly not the absolutely deterministic procedure we think of. There is a little wobbling.