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
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs