Try it with some "output" code

by (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



    
This message has been edited by burger2227 from IP address 71.60.226.47 on Apr 1, 2008 11:22 AM

Posted on Apr 1, 2008, 11:20 AM
from IP address 71.60.226.47

Respond to this message   

Goto Forum Home