asp执行速度计算代码
- asp执行速度计算代码
发布时间:2010-01-24 类别:asp技术 来源:侠客工作室 -
- 1
- 2
- 3
- 4
- 5
一般conn.asp文件里加 starttime=timer()
因为asp执行速度的瓶颈是数据库存取。
在尾部加上:
页面执行时间::
<%
dim endtime
endtime=timer()
if isempty(starttime) then
response.write "没有程序被执行"
else
if cstr(FormatNumber((endtime-starttime)*1000,3))=".000" then
response.write "没有程序被执行"
else
response.write FormatNumber((endtime-starttime)*1000,3)&"毫秒"
end if
conn.close
set conn=nothing
end if
%>关键字:asp执行速度 页面执行时间
- ☆☆☆技术交流群:5684178☆☆☆
- 上一篇:自动换行(可防止网页被撑开)
- 下一篇:KingCMS里调用友情链接