/** * Causes the thread which sent this message to sleep for the given interval * of time (given in milliseconds and nanoseconds). The precision is not * guaranteed - the Thread may sleep more or less than requested. * * @param millis * The time to sleep in milliseconds. * @param nanos * Extra nanosecond precision * @throws InterruptedException * if <code>interrupt()</code> was called for this Thread while * it was sleeping * @see Thread#interrupt() */ public static void sleep(long millis, int nanos) throws InterruptedException { internalSleep(millis, nanos); } private static native void internalSleep(long millis, int nanos) throws InterruptedException;
/** * Causes the thread which sent this message to sleep for the given interval * of time (given in milliseconds and nanoseconds). The precision is not * guaranteed - the Thread may sleep more or less than requested. * * @param millis * The time to sleep in milliseconds. * @param nanos * Extra nanosecond precision * @throws InterruptedException * if <code>interrupt()</code> was called for this Thread while * it was sleeping * @see Thread#interrupt() */ public static void sleep(long millis, int nanos) throws InterruptedException { internalSleep(millis, nanos); } private static native void internalSleep(long millis, int nanos) throws InterruptedException;
/** * Causes the thread which sent this message to sleep for the given interval * of time (given in milliseconds and nanoseconds). The precision is not * guaranteed - the Thread may sleep more or less than requested. * * @param millis * The time to sleep in milliseconds. * @param nanos * Extra nanosecond precision * @throws InterruptedException * if <code>interrupt()</code> was called for this Thread while * it was sleeping * @see Thread#interrupt() */ public static void sleep(long millis, int nanos) throws InterruptedException { internalSleep(millis, nanos); } private static native void internalSleep(long millis, int nanos) throws InterruptedException;
/** * Causes the thread which sent this message to sleep for the given interval * of time (given in milliseconds and nanoseconds). The precision is not * guaranteed - the Thread may sleep more or less than requested. * * @param millis * The time to sleep in milliseconds. * @param nanos * Extra nanosecond precision * @throws InterruptedException * if <code>interrupt()</code> was called for this Thread while * it was sleeping * @see Thread#interrupt() */ public static void sleep(long millis, int nanos) throws InterruptedException { internalSleep(millis, nanos); } private static native void internalSleep(long millis, int nanos) throws InterruptedException;
/** * Causes the thread which sent this message to sleep for the given interval * of time (given in milliseconds and nanoseconds). The precision is not * guaranteed - the Thread may sleep more or less than requested. * * @param millis * The time to sleep in milliseconds. * @param nanos * Extra nanosecond precision * @throws InterruptedException * if <code>interrupt()</code> was called for this Thread while * it was sleeping * @see Thread#interrupt() */ public static void sleep(long millis, int nanos) throws InterruptedException { internalSleep(millis, nanos); } private static native void internalSleep(long millis, int nanos) throws InterruptedException;
/** * Causes the thread which sent this message to sleep for the given interval * of time (given in milliseconds and nanoseconds). The precision is not * guaranteed - the Thread may sleep more or less than requested. * * @param millis * The time to sleep in milliseconds. * @param nanos * Extra nanosecond precision * @throws InterruptedException * if <code>interrupt()</code> was called for this Thread while * it was sleeping * @see Thread#interrupt() */ public static void sleep(long millis, int nanos) throws InterruptedException { internalSleep(millis, nanos); } private static native void internalSleep(long millis, int nanos) throws InterruptedException;
/** * Causes the thread which sent this message to sleep for the given interval * of time (given in milliseconds and nanoseconds). The precision is not * guaranteed - the Thread may sleep more or less than requested. * * @param millis * The time to sleep in milliseconds. * @param nanos * Extra nanosecond precision * @throws InterruptedException * if <code>interrupt()</code> was called for this Thread while * it was sleeping * @see Thread#interrupt() */ public static void sleep(long millis, int nanos) throws InterruptedException { internalSleep(millis, nanos); } private static native void internalSleep(long millis, int nanos) throws InterruptedException;