https://www.tuicool.com/articles/FBZvya
def metric(function): def callFunc(*arg, **argz): startTime = time.time_ns() temp = function(*arg, **argz) stopTime = time.time_ns() print('delay%.3fms' % ((stopTime - startTime) / 1e6 )) return temp return callFunc
Sign in to make a reply
简简单单rsi
https://www.tuicool.com/articles/FBZvya