【IntelliJ IDEA 2019.2】延时函数

    public static void delay_ms(int nms){
        try {
            Robot r = new Robot();
            r.delay(nms);
        } catch (Exception e) {
        }
    }
         Thread.sleep(1000*3);   // 休眠3秒

 

posted on 2019-12-24 10:54  lizhuohui  阅读(58)  评论(0编辑  收藏  举报

导航