会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
拂晓风起
专注大前端和H5游戏技术。工作生活平衡,965快乐工作,有兴趣来Shopee的同学,请不吝推荐简历,邮箱:kenkofox@qq.com。
博客园
首页
新随笔
联系
管理
订阅
2010年6月5日
Java精确测量代码运行时间 代码执行时间 纳秒 nanoTime
摘要: Java精确测量代码运行时间: long startTime = System.nanoTime(); //開始時間 for(int i = 0;i<10000;i++){ ; } long consumingTime = System.nanoTime() - startTime; //消耗時間 System.out.println(consumingTime); System.out.p...
阅读全文
posted @ 2010-06-05 20:36 拂晓风起-Kenko
阅读(9174)
评论(0)
推荐(0)
编辑
公告