All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.jfunc.common.thread.ThreadUtil Maven / Gradle / Ivy

There is a newer version: 1.8.5
Show newest version
package top.jfunc.common.thread;

/**
 * @author xiongshiyan at 2018/5/15
 */
public class ThreadUtil {
    /**
     * 暂停毫秒
     * @param ms 毫秒
     */
    public static void sleep(long ms){
        try {
            Thread.sleep(ms);
        } catch (InterruptedException e) {
        }
    }

    /**
     * 暂停秒
     * @param s 秒
     */
    public static void sleeps(long s){
        sleep(1000 * s);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy