Capture Code Snippet Execution Time
Briefly

The SnippetDurationLogger NuGet package allows developers to easily capture and log the execution time of specific code snippets rather than entire methods, enhancing performance tracing.
By surrounding code with the LogExecutionTime method, developers can add comments and string interpolation, which will be logged alongside the execution duration, making it easier to identify slow code.
Read at CodeProject
[
|
]