time delay
- From: "GT" <contactGT_remove_@xxxxxxxxxxx>
- Date: Thu, 02 Jun 2005 14:16:00 GMT
How can I put a 1 second pause in my program? 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) ;
But that is processor intensive - I want the processor to be free to do
other work, which my program waits for a second...
???
.
- Follow-Ups:
- Re: time delay
- From: GT
- Re: time delay
- From: Dave
- Re: time delay
- From: r norman
- Re: time delay
- From: Tim Ward
- Re: time delay
- Prev by Date: Re: View contents of Vector in Debug watch window
- Next by Date: How to Add Triangle Bit map to List Control Header
- Previous by thread: Re: Upgrading look and feel of existing MDI Application
- Next by thread: Re: time delay
- Index(es):
Loading