public void run() {
        int runningCount = 1;
        while (true) {
            if (runningCount > time2run) {
                return;
            }
            object.startTimerThread();
            if (TwisterPropertiesFinder.isTimer) {
                try {
                    Thread.sleep(TwisterPropertiesFinder.numMillisecondsToSleep);
                } catch (InterruptedException e) {
                    logger.severe(e.getLocalizedMessage());
                }
            } else {
                try {
                    System.in.read();
                } catch (IOException e) {
                    logger.severe(e.getLocalizedMessage());
                }
            }
            runningCount++;
        }
    }