Re: just to be sure

new topic     » goto parent     » topic index » view thread      » older message » newer message
mexzony said...

i need to clear this time statement once and for all.

t = time 
while time() < t+0.1 do  
end while 

i know t is assigned a value here but the time() < t+0.1 is it timing an empty loop with a given condition or what.need some explaining.

This is a technique that some people use to have the program wait for some period of time. In this case it's waiting for a tenth of a second.

From Euphoria v4 onwards, this is not a good way to do this. A better way is ...

   -- pause for a tenth of a second. 
   sleep(0.1) 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu