sleep for 1 second : sleep « Threads « Ruby






sleep for 1 second


100.downto(1) { |c| print c, " "; sleep 1 }

 








Related examples in the same category

1.Waiting a Certain Amount of Time
2.Sleep amount of time
3.Sleep for less then a second.
4.Check the real interval between sleep