IT/JAVA
시스템 시작 종료시간 체크
밥알이
2017. 3. 2. 15:13
자바 실행 종료시간 체크
public class ExccuteTimeCheck {
public static void main(String[] args) {
long start = System.currentTimeMillis();
try {
Thread.sleep(3000);
} catch (Exception e) {
}
long end = System.currentTimeMillis();
System.out.println( "실행 시간 : " + ( end - start )/1000.0 );
}
}