java 粗略的获得程序执行时间
时间:2007-06-17 来源:朝花夕拾
long start = Calendar.getInstance().getTimeInMillis();
//Code to be tested here
long end = Calendar.getInstance().getTimeInMillis();
long timeElapseInMillis = end - start;
相关阅读 更多 +