<%@LANGUAGE=”VBSCRIPT” CODEPAGE=”936″%>
<%
Dim StarTime
StarTime=Timer()
%>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″ />
<title>获取ASP页面执行的时间</title>
</head>
<%@LANGUAGE=”VBSCRIPT” CODEPAGE=”936″%>
<%
Dim StarTime
StarTime=Timer()
%>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″ />
<title>获取ASP页面执行的时间</title>
</head>
<body>
<div align=”center”>
<img src=”https://www.jb51.net/article/xc_images/logo.jpg” />
</div>
<div align=”center” style=”width:400px;”>
<%
for i=1 to 10000
‘循环花费一些花间!
next
%>
</div>
<br>
</body>
</html>
<%
Dim EndTime
EndTime=Timer()
%>
<div align=”center”>当前页面执行的时间:<%=FormatNumber((EndTime – StarTime) * 1000, 3)%>毫秒</div>
© 版权声明
文章版权归作者所有,未经允许请勿转载。