摘要: // 放在要检测的代码段前,取开始前的时间戳 Long startTime = System.currentTimeMillis(); // 放在要检测的代码段后,取结束后的时间戳 Long endTime = System.currentTimeMillis();// 计算并打印耗时 Long t 阅读全文
posted @ 2023-02-24 10:22 烧肉粽 阅读(99) 评论(0) 推荐(0)