"Do While" C program question


#1

Can someone explain this function? I know what it does, but I don't understand the logic in this code. Thanks.

iCuurenttime = time(NULL);

do {

   iElaspedtime = time(NULL);

} while ((iElaspedTime - iCurrentTime) < 3);


#2

You have not provided enough information on what you are asking about. Besides looking at the code you have given there is an infinite loop because

(iElaspedTime - iCurrentTime) < 3)/*will always be true*/