PL(Programming Language)/Python

[Python] ์ฝ”๋“œ ์‹คํ–‰ ์‹œ๊ฐ„ ์ธก์ •

ํƒฑ์ ค 2021. 2. 16. 10:28
import time
import datetime

start = time.time()

'''
	ํ•จ์ˆ˜๋‚ด์šฉ
'''

sec = time.time() - start
times = str(datetime.timedelta(seconds=sec)).split(".")
times = times[0]
print("Time: ", times)
728x90