public static void set1msSuspendTime(int ms) {
        if (ms < 1)
            throw new EngineException("set1msStopTime( " + Integer.toString(ms) + " ) < 1ms");
        if (isStart())
            pause();
        omsSuspendTimeLocker.lock();
        try {
            if (ms != suspendTimeCalc.omsSuspendTime) {
                int i = OMath.isPowerOfTwo(ms);
                if (i == 1) {
                    suspendTimeCalc = new SuspendTimeCalculator.SuspendTimeCalculator_1();
                    quondamTimeCalc = new QuondamTimeCalculator.QuondamTimeCalculator_1();
                } else if (i != -1) {
                    suspendTimeCalc = new SuspendTimeCalculator.SuspendTimeCalculator_P2(i);
                    quondamTimeCalc = new QuondamTimeCalculator.QuondamTimeCalculator_P2(i);
                } else {
                    suspendTimeCalc = new SuspendTimeCalculator.SuspendTimeCalculator_Other(ms);
                    quondamTimeCalc = new QuondamTimeCalculator.QuondamTimeCalculator_Other(ms);
                }
                omsSuspendTimeChangeCount++;
            }
        } finally {
            omsSuspendTimeLocker.unlock();
        }
        try {
            Thread.sleep(100);
        } catch (InterruptedException ex) {
        }
        if (isStart())
            setContinue();
    }