Re: [DOS] How to code for a time delay? - AGAIN

new topic     » topic index » view thread      » older message » newer message

Alex Caracatsanis wrote:
> 
> One more question: how would I go about shortening the delay interval (to
> say 0.5 seconds), as sleep(i) accepts only an integer argument? ie:
> <display a star><wait 0.5sec><display another star><wait 0.5sec><...etc>
> 
> Thank you
> 
> Alex Caracatsanis

Hello Alex,

procedure delay(integer a,integer b)
  for=1 to a do
     for y=1 to b do
     end for
  end for
end procedure

atom start

start=time()
  delay(100,1000)
?time-start


By changing the values of a and b you can come up with any delay time you
  want.

Don Cole

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu