Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds. The thread does not lose ownership of any monitors.
(long millis)
| 248 | * Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds. The thread does not lose ownership of any monitors. |
| 249 | */ |
| 250 | public static native void sleep(long millis) throws java.lang.InterruptedException; |
| 251 | |
| 252 | public static void sleep(long millis, int nanos) throws java.lang.InterruptedException { |
| 253 | if (millis < 0) { |
no outgoing calls