Waits for at most the given interval for the thread
That means that it will not wait longer than the time specified. And even then it will only wait if the thread is still running.
If you wish to pause your code for a specific time then use the
Sleep
function[
^].