question: 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 ) ; } }
target:  Pause for the specified milliseconds. Make sure system clock has advanced by the specified number of millis before returning.