code: public Stopwatch stopAfter(final int aSecondsCount) {
          if (!myTimerIsRunning) {
              throw new IllegalStateException(LOGGER.getI18n(MessageCodes.UTIL_041));
          }
  
          int stopCount = aSecondsCount;
  
          while (stopCount < aSecondsCount) {
              stopCount = (int) (System.currentTimeMillis() - myStart) / 1000;
          }
  
          myStop = System.currentTimeMillis();
          myTimerIsRunning = false;
  
          return this;
      }
docs: Stop the stopwatch (as soon as possible) after a certain number of seconds.
  
  @param aSecondsCount A number of seconds after which to stop the stopwatch
  @throws IllegalStateException if the stopwatch is not already running.
  @return The stopwatch