always there for you

善于生活,善于学习,这是我和你的目标.

« 安装 Informix 9.4asp.net(C#)面试题 »

页面执行时间-asp

 测试页面执行时间!

Timer()为早上0点到现在的秒数

Class TestTime
   Dim StartTime
   Dim EndTime
   Public function Start()
     StartTime = timer()
   End Function
  
   Public function Ends()     
     EndTime = timer()
     Response.Write FormatNumber((EndTime-StartTime)*1000,3)&"毫秒"
     End Function     
End Class
   
   Set sTestTime = new TestTime

   sTestTime.Start()

   For i=0 to 10000
    Response.Write "loading.."&"<br />"
   Next

   sTestTime.Ends()
 

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

最新评论及回复

最近发表

Copyright www.alwaysthere.com.cn . Some Rights Reserved.

              

Powered By Z-Blog 1.8 Devo Build 80201