우노
[Python] 시간 측정 본문
초 단위 측정
import time
# 초 단위
start_s = int(round(time.time()))
end_s = int(round(time.time()))
print("second : ", end_s - start_s)
밀리 초 단위 측정
import time
# 밀리 초 단위
start_ms = int(round(time.time() * 1000))
end_ms = int(round(time.time() * 1000))
print("milli second : ", end_ms - start_ms)'Language > Python' 카테고리의 다른 글
| [Python] Pandas DataFrame 중복 행, 열 제거 (2) | 2021.10.09 |
|---|---|
| [Python] Google 이미지 크롤링 방법 (0) | 2021.09.28 |
| [Python] pip 개념 및 설치 (0) | 2021.06.25 |
| [Matplotlib] figure, subplot 차이 (0) | 2021.06.23 |
| [Python] Pandas DataFrame 컬럼 값 조건 변경 (4) | 2021.06.05 |
Comments