Here you can find the source of sleep(long millis)
Parameter | Description |
---|---|
millis | The amount of time in milliseconds to attempt to sleep for |
public static final void sleep(long millis)
//package com.java2s; //License from project: Open Source License public class Main { /** @param millis The amount of time in milliseconds to attempt to sleep * for *//*from www . ja v a 2 s. c om*/ public static final void sleep(long millis) { try { Thread.sleep(millis); } catch (Throwable ignored) { } } }