from time import perf_counter
def get_session_user_storage_info():
start_time = perf_counter()
......
end_time = perf_counter()
print("=============耗时:")
print(end_time - start_time)
结果展示:单位为秒
from time import perf_counter
def get_session_user_storage_info():
start_time = perf_counter()
......
end_time = perf_counter()
print("=============耗时:")
print(end_time - start_time)
结果展示:单位为秒