Delay

HI masters,
I want to create a loop say :

while (i>=0)
// do something
Now hang for two seconds for next iteration
i-=i
}

How would you hang the process in ruby for a certain time?
thank you

On Mar 11, 2006, at 3:25 PM, TURK wrote:

thank you


Posted via http://www.ruby-forum.com/.

Use Kernel#sleep

– Daniel