Nah that defies the whole purpose of the timing code above it Chief =]
darklordz, sorry to state the obvious but I presume PERIOD and TIME are previously initialised? ;]
Also remember that the expression 'Until ELAPSED%' will only wait so long as ELAPSED% is not 0 - is it possible that TIME%=TIME%+PERIOD% could ever give a greater number than MilliSecs()? I'd use 'Until ELAPSED%>0' to be sure.
darklordz, sorry to state the obvious but I presume PERIOD and TIME are previously initialised? ;]
Also remember that the expression 'Until ELAPSED%' will only wait so long as ELAPSED% is not 0 - is it possible that TIME%=TIME%+PERIOD% could ever give a greater number than MilliSecs()? I'd use 'Until ELAPSED%>0' to be sure.