📜  python 执行时间 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:50.264000             🧑  作者: Mango

代码示例2
#its tricky and so much easy
#python execute time counter
#coded by Luban
import time
start_time = time.time()
while True:
    x = time.time() - start_time
    x = int(x)
    print('Current Time = ',str(x))