java程序执行耗时

long startMillis = System.currentTimeMillis();
long endMillis = System.currentTimeMillis();
long minutes = TimeUnit.MILLISECONDS.toMinutes(startMillis - endMillis );
posted @ 2023-08-08 14:18  Aoul  阅读(41)  评论(0编辑  收藏  举报