Python gets the running time of the program

import time

tic= time.time()
# ...
toc=time.time()

print('运行时间t= %f'%(toc-tic))

Guess you like

Origin blog.csdn.net/NICAI001/article/details/120805977