@contextmanager<EOL>def timeit_block(unit='<STR_LIT:s>', label="<STR_LIT>"):
start = time.time()<EOL>try:<EOL><INDENT>yield<EOL><DEDENT>finally:<EOL><INDENT>_format(unit, time.time() - start, label)<EOL><DEDENT>
测试代码块耗时

:param unit: 时间单位，有 's','m','h' 可选（seconds，minutes，hours）
:param label: 代码块标签