Re: just to be sure
- Posted by DerekParnell (admin) Dec 02, 2010
- 1237 views
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)