计算ASP页面的载入时间
2001-02-06 10:16:52 来源:WEB开发网核心提示:<%Dim varInitial_TimevarInitial_Time = TimerResponse.Write "Initial_Time =[" & varInitial_Time & "]<br>"%> <% 'Start 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.
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.
- ››asp.net页面弄成伪静态页面
- ››页面后退并刷新的javascript
- ››Asp.net 中将汉字转换成拼音的方法
- ››ASP.NET及JS中的cookie基本用法
- ››ASP.NET获取MS SQL Server安装实例
- ››asp.net实现调用百度pai 在线翻译英文转中文
- ››ASP.NET页面选项进行提示判断
- ››Asp.net定时执行程序
- ››ASP.NET中利用DataList实现图片无缝滚动
- ››ASP.NET验证控件RequiredFieldValidator
- ››ASP.NET中使用System.Net.Mail发邮件
- ››ASP.NET中获取用户控件中控件的ID
更多精彩
赞助商链接