need some explanation on this bit of code
hello all, i have a pretty simple bit of code, well i know what it does in all, but i dont get it precisely.
consider the following bit of code :
that if statement! and the return statement afterward ! what is it doing?
double currentTime ;
currentTime = timeGetTime() - lastTime;
if (currentTime < 33.333 )
lastTime = timeGetTime();
i mean it is supposed to make a delay or sth? if so how is it doing it ?