Picture using minio service

This commit is contained in:
zhouchengrong
2024-03-18 14:17:43 +08:00
parent 26c328b1e4
commit 2f89e7432f
116 changed files with 10294 additions and 254 deletions

View File

@@ -0,0 +1,14 @@
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")
return res
return wrapper