How do I display the duration it took to generate a page in a pages footer?

Posted by Sam Saffron on Stack Overflow See other posts from Stack Overflow or by Sam Saffron
Published on 2010-06-14T07:27:18Z Indexed on 2010/06/14 7:32 UTC
Read the original article Hit count: 240

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?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc