perf: extract the timing of a section in a context manager

Authored by lothiraldan.

Description

perf: extract the timing of a section in a context manager

This makes it easier to reuse it in other (future) part of the code that
requires their own time management.

Details

Committed
lothiraldanTue, Oct 2, 12:54 PM
Parents
rHGd5d28d360a19: pref: support negative indexing in perfrevlogrevisions
Branches
Unknown
Tags
Unknown