how fast to 1 Billion ?

BlitzMax Forums/BlitzMax Beginners Area/how fast to 1 Billion ?

Strict adds overhead
compiler defaults to int
for/next faster then while/wend
calculate before print


 
Local start = MilliSecs(), a = 0, finish

For a = 0 To 1000000000 ; Next

finish = (MilliSecs() - start)

Print "0 to 1 Billion in " + finish + " milliseconds"


Enjoy