void (long time) { //we need this to ensure that the file won't be treated as changed by user during compilation and therefore marked for recompilation long delta; while ((delta = time - System.currentTimeMillis()) > 0) { TimeoutUtil.sleep(delta); } }