% dim startime startime=timer() for i = 1 to 10000000 next dim endtime endtime=timer() response.Write "页面执行时间:" FormatNumber((endtime-startime)*1000,3) "毫秒" %>
2、程序定义了变量(dim i)
复制代码 代码如下:
% dim i dim startime startime=timer() for i = 1 to 10000000 next dim endtime endtime=timer() response.Write "页面执行时间:" FormatNumber((endtime-startime)*1000,3) "毫秒" %>