@contextmanager
def timing(slug):
    timer = Timer()
    timer.start()
    yield
    timer.stop()
    timer.store(slug)
Helper function to create desired volume attach data.
dataset/ETHPy150Open frankwiles/django-app-metrics/app_metrics/utils.py/timing--crossover with--dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/functional/test_ebs.py/VolumeStateTransitionTests._pick_attach_data