HomePhabricator

util: create a context manager to handle timing

Authored by mjpieters.

Description

util: create a context manager to handle timing

The context manager is pulled out of the timed decorator function, and
refactored to provide a stats instance, with added tests.

Details

Committed
mjpietersAug 1 2018, 10:05 AM
Parents
rHGb9974f2ef9b1: linelog: fix import statements to pass the import checker on py3
Branches
Unknown
Tags
Unknown