code: public void idle(final int milliseconds) {
  		long startTime = System.currentTimeMillis();
  		while((System.currentTimeMillis() - startTime) < milliseconds)
  			try {
  				Thread.sleep(Math.max(1, milliseconds - (System.currentTimeMillis() - startTime)));
  			}
  		catch(InterruptedException e) {
  		}
  	}
docs: Idles / Waits for the given amount of milliseconds useful to prevent being blocked by mass sending
  requests or to appear as a artificial user.