计算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>"
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>"
- 上一篇: 页面延迟的两个简单方法
- 下一篇: 较长TEXT型数据无法在ASP页面中取出的解决办法
-= 资 源 教 程 =-
文 章 搜 索