def timer(func):
name = func.__name__<EOL>@wraps(func)<EOL>def timed_func(self, *args, **kwargs):  <EOL><INDENT>_start = time.time()<EOL>out = func(self, *args, **kwargs)<EOL>self.log(<NUM_LIT:2>, '<STR_LIT>'.format(name, time.time() - _start))<EOL>return out<EOL><DEDENT>return timed_func<EOL>
Time a method and print its duration after return