public class Wait {

    public static void main(String[] args) {
        System.out.println(System.currentTimeMillis());
        
        //程序暂停1000ms
        try {
            Thread.sleep(1000);
        } catch (Exception e) {
            System.exit(0);// 退出程序
        }
        
        System.out.println(System.currentTimeMillis());
    }

}

 

相关文章:

  • 2021-09-23
  • 2021-10-25
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
猜你喜欢
  • 2022-12-23
  • 2021-07-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-04-08
相关资源
相似解决方案