v04 time format update 03
This commit is contained in:
parent
0fdb978be1
commit
44f2951ee1
|
@ -191,8 +191,8 @@ def webcam_opencv(device_index="0",
|
|||
print(f'程序结束!')
|
||||
e_time = time.time() # 终止时间
|
||||
total_time = e_time - s_time # 程序用时
|
||||
# outTimeMsg = f'用时:{total_time/time_list[0]:.3f}秒, {total_time/time_list[1]:.3f}分, {total_time/time_list[2]:.3f}小时'
|
||||
outTimeMsg = f'用时:{time_format(total_time)}'
|
||||
# outTimeMsg = f'用时:{total_time/time_list[0]:.3f}秒, {total_time/time_list[1]:.3f}分, {total_time/time_list[2]:.3f}小时' # 适用于细微记录
|
||||
outTimeMsg = f'用时:{time_format(total_time)}' # 格式化时间格式,便于观察
|
||||
print(outTimeMsg)
|
||||
log_management(f'{outTimeMsg}\n', logName, logMode) # 记录用时
|
||||
|
||||
|
|
Loading…
Reference in New Issue