程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> ASP編程 >> ASP技巧 >> 計算ASP頁面的載入時間

計算ASP頁面的載入時間

編輯:ASP技巧

<%
Dim varInitial_Time
varInitial_Time = Timer
Response.Write "Initial_Time =[" & varInitial_Time & "]<br>"
%>


<% 'Start ASP Script Tag
For I = 1 to 10
Response.write "Hello World Take " & I & "<br>"
Next
'End ASP Script Tag %>
<!-- Start: HTML--><br>You looped <%=(I - 1) %> times.<br><!-- End: Html-->

<%
Dim varFinal_Time
varFinal_Time = Timer
Response.Write "Final_Time =[" & varFinal_Time & "]<br>"


Your ASP Script Results will be Displayed in the box below


--------------------------------------------------------------------------------

Initial_Time =[81105.81]
Hello World Take 1
Hello World Take 2
Hello World Take 3
Hello World Take 4
Hello World Take 5
Hello World Take 6
Hello World Take 7
Hello World Take 8
Hello World Take 9
Hello World Take 10

You looped 10 times.
Final_Time =[81105.81]
It took [0.00] seconds to load this page. 

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved