The wait Statement
The wait statement suspends the current thread for the number of milliseconds specified by its constant argument. The syntax of the wait statement is shown below.
wait 1000 // wait for 1 second