def timeit(func):
@wraps(func)<EOL>def wrapped_func(*args, **kwargs):<EOL><INDENT>start  = timer()<EOL>result = func(*args, **kwargs)<EOL>cost   = timer() - start<EOL>logger.debug('<STR_LIT>' % (func.__name__, cost))<EOL>return result<EOL><DEDENT>return wrapped_func<EOL>
Decorator that logs the cost time of a function.