I have written a program in which there is a board and the balls should travel from one place to another.i need to provide a delay when i draw the ball in new position and erase it from previous position.I used delay() funtion on turbo c++.but on gcc compiler on linux i dont know how to provide delay.I used usleep() function but i cant see the successive movement of balls.what should i do?.please help..how do i write a delay loop