in reply to sleep problem !

Hi,

I could be wrong but the code you have posted looks to me like your trying to achieve a progress bar.
If this is the case then you may want to have a look at the Progress Bar modules.

Hope this helps.

Martin