I think you should understand exactly on how these functions are called and executed and choose a spot Yourself.
And as far as the time limit is considered. You should multithread the program , I dont see anything else capable to do so.
Sky Diploma
Practically a Posting Shark
865 posts since Mar 2008
Reputation Points: 673
Solved Threads: 131
There have been lots of threads here about how to clear the screen. Like this one
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343