def print_runtime(function):
def wrapper(*args,**kwargs):<EOL><INDENT>pr=cProfile.Profile()<EOL>pr.enable()<EOL>output = function(*args,**kwargs)<EOL>pr.disable()<EOL>ps = pstats.Stats(pr)<EOL>ps.sort_stats('<STR_LIT>').print_stats(<NUM_LIT:20>)<EOL>return output<EOL><DEDENT>return wrapper<EOL>
Decorator that prints running time information at each call of the function