I have the following code for inserting a delay in the program:
and I use it like this:Code:#include <time.h> void CreateHPGL::sleep( clock_t wait ) { clock_t goal; goal = wait + clock(); while( goal > clock() ); }
It works fine on windows, however, on unix, there is no delay. Can someone point out the problem for me?Code:sleep(20000); // for a 20 second delay
Kamran




Reply With Quote