Delay

Blitz3D Forums/Blitz3D Beginners Area/Delay


It's incorrect, the correct program is:

- What's the difference?


It's possible the result was 0.5
The difference is going to vary a lot between computers and current running processes. Chances are, the 2nd routine is MUCH quicker, because it doesn't have to check for IF's and call to Millisecs() which would slow the thing down.

Instead of just

For F=1 To xxx
Next


use

Timer=MilliSecs() 
For F=1 To xxx
If 1=1
If (MilliSecs()-Timer)=>1500 
Print
End If 
End If
Next 


This should slow it down to match the initial test a little.