Please try to search the forum with the required keyword and then post if your query here.
Maybe you should look here for solution
http://www.daniweb.com/techtalkforums/thread56763.html
Just integrate the sleep funtion given there below the display stmt in the while loop and thigs will work out fine for you.