怎么计算代码运行所需的时间? 有个for循环;for (int i =0;i<10000;i++){ }怎么计算跑完for循环需要多长时间? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 long start=System.currentTimeMillis();/**for循环*/for (int i =0;i<10000;i++){ // for循环内操作}long end=System.currentTimeMillis();System.out.println("Time:"+(end-start)); datePickerDialog 如何通过循环数组设置button的id? android开发实习工资 ubuntu10.04 下编译android2.3代码出错 使用自定义类时在view中抛出空指针异常 请问Android出现这个问题怎么解决,先谢过了!!呵呵 两个view以拖动方式切换,该如何实现? ActivityNotFoundException 有些迷惑 ,望解答 常见布局界面 NDK中能编译汇编吗? ksoap2的问题
long start=System.currentTimeMillis();
/**for循环*/
for (int i =0;i<10000;i++){
// for循环内操作
}
long end=System.currentTimeMillis();
System.out.println("Time:"+(end-start));