4 ms·
For that there is is usually some log wrapper that times the operation, e.g. using(_log.TimeOperation("Doing the thing")) { DoTheThing(); } So
by SideburnsOfDoom 5y ago
For that there is is usually some log wrapper that times the operation, e.g.
using(_log.TimeOperation("Doing the thing"))
{
DoTheThing();
}
So that you get a start message, and an end message with timing, and if you exited with normal control flow vs. with an exception.
Author doesn't seem to have reached that level of best practice yet.