is protected void Application_BeginRequest(Object sender, EventArgs e)
in the Global.asax.cs file
.
{
Application["StartTime"] = System.DateTime.Now;
}
protected void Application_EndRequest(Object sender, EventArgs e)
{
System.DateTime startTime = (System.DateTime)Application["StartTime"];
System.DateTime endTime = System.DateTime.Now;
System.TimeSpan ts = endTime - startTime;
Response.Write("Page execution time:"+ ts.Milliseconds +" milliseconds");
}