long start=System.currentTimeMillis(); //.... //代码块执行.... //.... long end=System.currentTimeMillis()-start; log.e(tag,"一共耗时"+end+"毫秒");
long start=System.currentTimeMillis(); //.... //代码块执行.... //.... long end=System.currentTimeMillis()-start; log.e(tag,"一共耗时"+end+"毫秒");