- millis
- The time to sleep in milliseconds.
- nanos
- Extra nanosecond precision
Type Reason Java.Lang.InterruptedException if the current thread has been interrupted. The interrupted status of the current thread will be cleared before the exception is thrown.
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.