Timer=millisecs() For F=1 TO 999999 If xxx=0 If (Millisecs()-Timer)=>1500 xxx=F Print F End If End If Next
How about, run this code first to find out how many FOR/NEXT iterations are equivalent to 1500 ms
then divide this figure by 1000 (should be most accurate).
Unfortunately calls to millisecs() take a fair bit of comparitive time too.
Instead of delay, then use
For F=1 to xxx Next xxx