FOR/NEXT or WHILE?

BlitzMax Forums/BlitzMax Programming/FOR/NEXT or WHILE?

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.

can't tell the same

for me local is faster (36to 63in averange)



t1 = MilliSecs ()
For x = 1 To 10000000

Next

t1 = MilliSecs () - t1

t2 = MilliSecs ()

x = 1
While x < 10000001
	x :+ 1
Wend

t2 = MilliSecs () - t2
Print t1
Print t2


the funny thing: without strict it is 4 times as fast as with strict??????