-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Milestone
Description
A context manager to time blocks of code, storing the results with some user passed identifier string
e.g.
with BenchmarkTimer("calculating something") as bt:
a = calculate_something()
b = a**2prints something like Elapsed time to execute code block 'calculate something': 55 ms
bt stores the results, keeping the "calculating something" info, but its optional use as bt.
Metadata
Metadata
Assignees
Labels
No labels