how fast to 1 Billion ?

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

To make it more accurate, you should put a delay at the beginning.

Strict 

Local a:Int = 0 

Local start:Int 
Local finish:Int 

Delay 500

start = MilliSecs()

While( a < 1000000000) 

a = a + 1 

Wend 

finish = MilliSecs() 

Print "0 to 1 Billion in " + (finish - start) + " milliseconds"