Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pause in Turbo C++

Status
Not open for further replies.

Jengo

Programmer
Apr 17, 2000
100
US
Does anyone know how you can pause your program for a specified number of seconds in C++. I am using Turbo C++ 4.5 by Borland. It only has a 16 bit complier? Can anyone help me?
 
You could also use time function twice. First, when your program starts and everytime in the empty loop.
The difference between them can be compared to the desire run time, if it equals to it, then continue.

But delay() will do this with no fancies. Best Regards,

aphrodita@mail.krovatka.ru {uiuc rules}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top