ASP.NET calculation page execution time

xiaoxiao2021-03-06  124

Computing page execution time in ASP.NET

Mainly rewriting the render method

DateTime start; void Page_Init (Object sender, EventArgs e) {start = DateTime.Now;} protected override void Render (HtmlTextWriter writer) {base.Render (writer); DateTime stop = DateTime.Now; Response.Write ( "done in " (Stop-start);

转载请注明原文地址:https://www.9cbs.com/read-126125.html

New Post(0)