Re: time delay



"GT" <contactGT_remove_@xxxxxxxxxxx> wrote in message
news:AwEne.54559$Li.39436@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> How can I put a 1 second pause in my program?

Why? (Different solutions will be appropriate depending on what you're
trying to achieve.)

> This is just in code - no
> screen elements involved. I know I could do this:
>
> clock_t goal = clock() + (clock_t)(1 * CLOCKS_PER_SEC);
> while ((goal - clock()) >= 0) ;

Well, you could if you only wanted it to work sometimes.

--
Tim Ward
Brett Ward Limited - www.brettward.co.uk


.



Relevant Pages