Skip to content

Instantly share code, notes, and snippets.

View adisonhuang's full-sized avatar

Hard Code adisonhuang

View GitHub Profile
@adisonhuang
adisonhuang / profiler.py
Last active May 1, 2020 08:37
python 函数执行时间工具类
from functools import wraps
import cProfile
from line_profiler import LineProfiler
import time
def func_time(f):
"""