attribute 字段名规范

This commit is contained in:
zhouchengrong
2024-03-28 10:30:18 +08:00
parent 2931dc2a41
commit ddcc8b4300
297 changed files with 5098 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import time
import logging
def RunTime(func):
def wrapper(*args, **kwargs):
t1 = time.time()
res = func(*args, **kwargs)
t2 = time.time()
if t2 - t1 > 0.05:
logging.info(f"function{func.__name__}】,runtime{str(t2 - t1)}】s")
print(f"function{func.__name__}】,runtime{str(t2 - t1)}】s")
return res
return wrapper