365 |
* because some other thread may be active. So don't expect real-time |
* because some other thread may be active. So don't expect real-time |
366 |
* performance. |
* performance. |
367 |
* |
* |
368 |
* @param ms the number of milliseconds to sleep, or 0 for forever |
* @param ms the number of milliseconds to sleep. Will be at least 1. |
369 |
* @param ns the number of extra nanoseconds to sleep (0-999999) |
* @param ns the number of extra nanoseconds to sleep (0-999999) |
370 |
* @throws InterruptedException if the Thread is interrupted; it's |
* @throws InterruptedException if the Thread is (or was) interrupted; |
371 |
* <i>interrupted status</i> will be cleared |
* it's <i>interrupted status</i> will be cleared |
|
* @throws IllegalArgumentException if ns is invalid |
|
372 |
*/ |
*/ |
373 |
static native void sleep(long ms, int ns) throws InterruptedException; |
static native void sleep(long ms, int ns) throws InterruptedException; |
374 |
|
|