Try it with some "output" codeby (Login burger2227)R I believe that the more code you add in a loop will slow the loop more. I tried using Ticks also, but a mere PRINT did not give me the correct count. To see what I mean, just make a simple counter loop. It will run faster than 1ms actually. But when you add a simple line of code, the loop slows a lot. t! = TIMER + 1 '1 second delay - fairly accurate, but you can try your POKE idea too DO: count& = count& + 1 'add some code here like a! = SIN(3) LOOP UNTIL TIMER >= t! PRINT count& To really slow it down try a graphics function. Also loop counts will vary by the processor's speed! Ted
from IP address 71.60.226.47 |