首页 | 免费域名 | 个人服务器 | 一流信息监控拦截系统 | 虚拟主机知识库 | ASP 空间 | ASP技术大全 | 下载中心 | 客户服务中心
  7i24 > ASP技术大全 > 代码乐园 >
    7i24 .Com  
  设定你的ASP程序的执行次数

7i24.Com不停为您服务



<%
sub StartTimer(x)
'::::::::::::::::::::::::::::::::::::::::::::::::::::
':::  Here we start the timer         :::
'::::::::::::::::::::::::::::::::::::::::::::::::::::
 StopWatch(x) = timer
end sub


function StopTimer(x)
'::::::::::::::::::::::::::::::::::::::::::::::::::::
':::  Here we 'stop' the timer and calculate :::
':::  the elapsed time (allowing for the   :::
':::  midnight wrap-around. NOTE: These    :::
':::  routines should not be used to time   :::
':::  very long events (>1 hour) or very   :::
':::  short events (< 100 milliseconds)    :::
'::::::::::::::::::::::::::::::::::::::::::::::::::::
 EndTime = Timer

 'Watch for the midnight wraparound...
 if EndTime < StopWatch(x) then
  EndTime = EndTime + (86400)
 end if

 StopTimer = EndTime - StopWatch(x)
end function
%>



  2002年1月14日  阅读 1461 次  发送此页给朋友  来源:    版权争议  删除

相关文章:   近期热点:

上一篇: 用global.asa来实现在特定条件执行特定的ASP程序
下一篇: 用ASP来构建NT服务(英文,高手看吧)
返回上一层...
搜索:

(C)2004-2022 7i24.Com 保留所有权利