I need a better solution to a while loop that continualy checks the current time against the time that the user would like the program to end. This loop spikes the processor usage to 100%.
while( time(NULL) <= endTime )
{
printf("\r%4d", endTime - time(NULL));
}
Thanks in advance.