@contextmanager<EOL>def block(*, name = None, metric = call_default, count = <NUM_LIT:1>):
t = time.time()<EOL>try:<EOL><INDENT>yield<EOL><DEDENT>finally:<EOL><INDENT>metric(name, count, time.time() - t)<EOL><DEDENT>
Context manager to measure execution time of a block

    :arg function metric: f(name, 1, time)
    :arg str name: name for the metric
    :arg int count: user-supplied number of items, defaults to 1