Delay

Blitz3D Forums/Blitz3D Beginners Area/Delay

It's incorrect, the correct program is:

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



The value is 4726, so:

for xxx=4276
next


is 1.5 milliseconds.
I tried this program:

a=millisecs()
for xxx=0 To 4726
next
b=millisecs()
print b-a


and return 0 or 1, this mean the value is 0.5 milliseconds, and not 1.5, but i'll make 4276*3.

Thanks