When you put your app to sleep it does nothing which means it is frozen.

You would use a timer to make something happen at given intervals, sleep to halt execution for a given interval

You can but should not use a busy loop to cause your code to not go past the loop for a given time but again this will effectively freeze your app unless you have a doevents in there and that will allow other stuff to happen so that does not sound like what you want.

In the future you should try to give the best description possible of what you are trying to do and do not insult other members of the forum.