timedelta
차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 | ||
timedelta [2020/05/26 22:58] – 만듦 rex8312 | timedelta [2024/03/23 02:38] (현재) – 바깥 편집 127.0.0.1 | ||
---|---|---|---|
줄 1: | 줄 1: | ||
====== timedelta ====== | ====== timedelta ====== | ||
+ | <code python> | ||
+ | start = datetime.datetime.now() | ||
+ | ... # process code goes here | ||
+ | end = datetime.datetime.now() | ||
+ | # we get the total runtime in seconds | ||
+ | runtime = (end - start).seconds | ||
+ | |||
+ | f' | ||
+ | </ | ||
<code python> | <code python> |
timedelta.1590533907.txt.gz · 마지막으로 수정됨: 2024/03/23 02:37 (바깥 편집)