views:

34

answers:

3

i currently use the context.timestamp function to get the time in the beginning of the request but i want to know if i can check the time sooner in the pipeline (before the load page phase) or the timestamp is the earlier time i can get. now i need to find the latest time after the request was processed, of course i can check the time in the end of the function, but is there somewhere else where i can check the time of the request ending.

thanx!

+2  A: 

Maybe just adding a <%@ Page Trace="true" %> into your page is enough.

Please, take a look into ASP.NET Trace.

Rubens Farias
+1  A: 

Because sometimes the Trace="true" doesn't work nicely with CSS, you can also, check this page : Show page load time, which has a very detailed explanation (and various different ways) on how to do this.

Alex
A: 

You can also tap into the IIS pipeline more directly by adding event handlers in Global.asax. You could handle BeginRequest and EndRequest for example, which occur well before and well after your Page handler is invoked.

womp