Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


ID: 14979, Pausing your Program

by Leon Yuhanov Email: yuhanov@iprimus.com.au


Download Details
FTP  download also available 0 bytes
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For C++Builder, Version 5.0  to 5.0 11 downloads
Copyright: No significant restrictions


Size: 0 bytes
Updated on Sun, 09 Jul 2000 00:00:00 GMT
Originally uploaded on Sun, 09 Jul 2000 00:00:00 GMT
Description
I have had allot of problems in regards to the displaying of data to the user of the program! say you want to read a section of a file and display that text to the user BUT you also want the program to pause for a few seconds. i have created a small function that uses the time.h library to pause your program for how ever many seconds you like:

int wait(){
int start;
for(start=(time(NULL) + 3); time(NULL)!= start; time(NULL)){
}
return 0;
}

The number 3 is the ammount of seconds you want the program to pause for! you can change this to any number but currently, this function, WAIT(), pauses for 3 seconds then returns back to your program!

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04