I am looking for a simple, reusable way to record the time taken to execute a method in my .NET project (MVC) and write it using NLog and was wondering if anyone has any suggestions on how to implement this?
To maintain clean code and readability, I really don't want to integrate it into my code, if possible.
If anyone has any suggestions, I'd love to hear them.
source
share