Java tutorial
//package com.java2s; public class Main { /** * <p>Wait time = {@code interval} - (current time - {@code startTime}). * Returns whether thread was interrupted during sleep.</p> * * @param startTime Time when operation was started. * @param interval Minimum time for operation. * @return True if thread was interrupted. */ public static boolean sleepMaxTime(long startTime, long interval) { throw new IllegalAccessError(); } }