关于统计统计程序运行时间的问题
来源:互联网 发布:php 判断微信 编辑:程序博客网 时间:2024/06/07 01:32
//关于统计统计程序运行时间的问题
public class C {
public static void main(String []args) {
Long startTime = System.currentTimeMillis();
System.out.println("程序开始运行计算机当前毫秒数 " + startTime);
for(int i=0;i<=10;i++){
System.out.println("**************************");
}
Long endTime = System.currentTimeMillis();
System.out.println("程序运行到此处计算机当前毫秒数 " + startTime);
System.out.println("程序共计运行 "+ (endTime-startTime)+" 毫秒");
}
}
------------------------------------------------------------------------------------------------------------------
C:/>javac C.java
C:/>java C
程序开始运行计算机当前毫秒数 1236088882882
**************************
**************************
**************************
**************************
**************************
**************************
**************************
**************************
**************************
**************************
**************************
程序运行到此处计算机当前毫秒数 1236088882882
程序共计运行 16 毫秒
- 关于统计统计程序运行时间的问题
- 程序运行时间的统计
- 统计程序运行时间
- c++统计程序运行时间的方法
- 统计matlab程序的运行时间
- 精确统计程序运行时间
- linux 统计 程序运行时间
- CCS统计程序运行时间:
- linux 统计 程序运行时间
- linux 统计 程序运行时间
- QT程序运行时间统计
- VC统计程序运行时间
- linux 统计 程序运行时间
- linux 统计 程序运行时间
- java 统计程序运行时间
- 简易的windows下命令行统计程序运行时间程序
- 统计运行时间的宏
- 如何准确的统计自己程序的运行时间
- spring学习笔记2
- PreparedStatement对象和Statement对象(二)
- C宏应用
- 用YSlow分析我们页面
- Jdk 1.6
- 关于统计统计程序运行时间的问题
- 如何提高网页的效率(下篇)——Use YSlow to know why your web Slow
- PPT制作的资源
- 求素数 c/c++
- Spring中ApplicationContext加载机制
- S3C2440的时钟设定
- JDK 1.7
- 面向对象的程序设计与面向组件的关系
- 扁鹊的医术