Calculate the time consumption of the leaves in ASP.NET

zhaozj2021-02-16  98

Language = "c #" runat = server>

DateTime StartTime;

Void Page_Init (Object Sender, Eventargs E)

{

StartTime = DATETIME.NOW;

//Response.write ("page init ");

}

Protected Override Void Render (HTMLTextWriter Writer)

{

Base.render (Writer);

DateTime endtime = datetime.now;

Response.write ("DONE IN" (endtime-starttime);

}

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

New Post(0)