Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Menu
Waiting a Certain Amount of Time : sleep « Threads « Ruby
Ruby
Threads
sleep
Waiting a Certain Amount of Time
3.downto(1) { |i| puts
"#{i}..."
; sleep(1) }; puts
"Go!"
Related examples in the same category
1.
sleep for 1 second
2.
Sleep amount of time
3.
Sleep for less then a second.
4.
Check the real interval between sleep