250x250
Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- STS
- Open Source
- Eclipse
- Source
- MSSQL
- SpringBoot
- git
- oracle
- error
- Exception
- 오픈소스
- PostgreSQL
- IntelliJ
- AJAX
- Tomcat
- jpa
- 설정
- maven
- spring
- Core Java
- Docker
- 문서
- myBatis
- ubuntu
- JavaScript
- Spring Boot
- JDBC
- MySQL
- Thymeleaf
- Python
Archives
- Today
- Total
목록currentTimeMillis (1)
헤르메스 LIFE
[Core Java] 경과 시간 구하기
public class DateSample { static Logger logger = LoggerFactory.getLogger( DateSample.class ); public static void main( String[] args ) { try { long start = System.currentTimeMillis(); //시작하는 시점 계산 Thread.sleep( 10000 ); long end = System.currentTimeMillis(); //프로그램이 끝나는 시점 계산 logger.info( "실행 시간 : " + ( end - start ) / 1000.0 + "초" ); //실행 시간 계산 및 출력 } catch ( InterruptedException ie ) { logger...
Core Java
2020. 12. 29. 14:16