public static final void pause(final int milliseconds){
  if (milliseconds >= 1000 || logger.isDebugEnabled()) {
    logger.info("Pausing for {} ms...",milliseconds);
  }
  final long target=System.currentTimeMillis() + milliseconds;
  try {
    for (; ; ) {
      long msLeft=target - System.currentTimeMillis();
      if (msLeft <= 0) {
        break;
      }
      Thread.sleep(msLeft);
    }
  }
 catch (  InterruptedException e) {
    Assert.fail("interrupted",e);
  }
}

public static final void pause ( final int milliseconds ) { if ( milliseconds >= 1000 || logger . isDebugEnabled ( ) ) { logger . info ( "Pausing for {} ms..." , milliseconds ) ; } final long target = System . currentTimeMillis ( ) + milliseconds ; try { for ( ; ; ) { long msLeft = target - System . currentTimeMillis ( ) ; if ( msLeft <= 0 ) { break ; } Thread . sleep ( msLeft ) ; } } catch ( InterruptedException e ) { Assert . fail ( "interrupted" , e ) ; } }
pause for the specified milliseconds . make sure system clock has advanced by the specified number of millis before returning .
