During debug builds I would like to show the duration it took, server side, to generate a page in the pages footer.
So for example if a page takes 250ms server side I would like that displayed in the footer, in debug builds. How can I achieve this in an ASP.NET MVC project?
Add this to the footer in your master page:
You can also wrap this in an extension method:
Use that like this:
You may need to import the namespace of the extensions class:
<%@ Import Namespace="Your.Namespace" %>