public synchronized void setTimeFactor(double factor) { if (paused) { pausedFactor = factor; } else { long now = System.currentTimeMillis(); elapsedLemMs = getTimeMs(now); startPeriodSystemMs = now; LemTimeFactor = factor;
public void setTimeFactor(double factor) { LinkedList wakeList; java.lang.Object o;  synchronized (this) { if (paused) { pausedFactor = factor; return; } else { long now = System.currentTimeMillis(); elapsedLemMs = getTimeMs(now); startPeriodSystemMs = now; LemTimeFactor = factor; }   wakeList = new LinkedList();
	public synchronized void setTimeFactor(double factor) {		if (paused) {			pausedFactor = factor;		} else {			long now = System.currentTimeMillis();			elapsedLemMs = getTimeMs(now);			startPeriodSystemMs = now;			LemTimeFactor = factor;			Iterator i = timeoutWaiters.iterator();			while (i.hasNext()) {				java.lang.Object o = (java.lang.Object)i.next();				synchronized (o) {					o.notifyAll();				}			}		}	}