How and when to use SLEEP() correctly in MySQL??

In relation to my other question today I am wondering how to use MySQL's SLEEP(duration) correctly. From what I gat...

Tell Ruby Program to Wait some amount of time?

How do you tell a Ruby program to wait an arbitrary amount of time before moving on to the next line of code? ...