if (CRSettings.getSingleton().isTimeRunning()) {
//-- clear output panel so that new output can be shown
if (!CRSettings.getSingleton().getIsConsoleOnlyBuild()) {
CROutputPopup outputPanel = CROutputPopup.getSingleton();
outputPanel.clearOutput();
}
//-- update all world objects
reportController.onUpdateLoopStart(timeCounter, timeUnits);
world.update();
reportController.onUpdateLoopEnd(timeCounter, timeUnits);
//-- update time counter
timeCounter++;
if (timeCounter == CRSettings.getSingleton().getTimeUnitInterval()) {
timeUnits++;
timeCounter = 0;
}
//-- show current time
CRParameters parameters = CRParameters.getSingleton();
if (!CRSettings.getSingleton().getIsConsoleOnlyBuild()) {
CROutputPopup outputPanel = CROutputPopup.getSingleton();
outputPanel.displayTimeOutput(" TIME ELAPSED: "+timeUnits + " "+timeCounter + " TRIAL:"+trialNumber+"/"+parameters.numOfTrials + " RUN:"+runNumber+"/"+parameters.numOfRuns);
}
//---- end trial?
if (timeUnits - parameters.trialDuration == 0 && timeUnits > 0 ) {
//-- tell the objects a trial ended