优化算法
This commit is contained in:
@@ -49,7 +49,7 @@ def timer(func):
|
||||
arg_list = list()
|
||||
for arg in args:
|
||||
arg_list.append(str(arg))
|
||||
performance_logger.info("函数名:(%s) 参数:(%s) 耗时:%f" % (func.__name__, arg_list, end - begin))
|
||||
performance_logger.info("函数名:%-20s\t耗时:%7.4f\t\t参数:(%s)" % (func.__name__, end - begin, arg_list))
|
||||
return rs
|
||||
|
||||
return _timer
|
||||
|
||||
Reference in New Issue
Block a user