feat 测试批量上传图片
fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import time
|
||||
import logging
|
||||
import time
|
||||
|
||||
|
||||
def RunTime(func):
|
||||
@@ -12,3 +12,16 @@ def RunTime(func):
|
||||
return res
|
||||
|
||||
return wrapper
|
||||
|
||||
|
||||
def ClassCallRunTime(func):
|
||||
def wrapper(*args, **kwargs):
|
||||
start_time = time.time()
|
||||
result = func(*args, **kwargs)
|
||||
end_time = time.time()
|
||||
execution_time = end_time - start_time
|
||||
class_name = args[0].__class__.__name__ # 获取类名
|
||||
print(f"class name: {class_name} , run time is : {execution_time} s")
|
||||
return result
|
||||
|
||||
return wrapper
|
||||
|
||||
Reference in New Issue
Block a user