Asp计算页面执行时间

2016-02-19 18:17 8 1 收藏

每个人都希望每天都是开心的,不要因为一些琐事扰乱了心情还,闲暇的时间怎么打发,关注图老师可以让你学习更多的好东西,下面为大家推荐Asp计算页面执行时间,赶紧看过来吧!

【 tulaoshi.com - Web开发 】

  页面执行时间:就是从这页的开始执行一直到这页执行完毕所用的时间。

  许多网站的首页的页尾都会显示一个页面执行时间,下面说说如何实现:

  首先在一个网页的开头定义一个变量:

  dim startime

  startime=timer()

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/webkaifa/)

  在显示页面执行时间的地方,这个地方应该是页尾的地方:

  dim endtime

  endtime=timer()

  页面执行时间:%=FormatNumber((endtime-startime)*1000,3)%毫秒

  大家试试吧 !
  

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/webkaifa/)

来源:https://www.tulaoshi.com/n/20160219/1617172.html

延伸阅读
标签: ASP
DTC是SQL SERVER中非常有用的工具,它允许你自动执行导入,导出,查询,插入等一系列的数据操作,我们在asp中也可以调用他现在我就演示给大家看 新建存储过程 ______________________ CREATE PROCEDURE doPublish AS exec master..xp_cmdshell 'dtsrun /Ssqlserver /Uusername /Ppassword /NPublish' ________________________ /S服务器名 /U用...
标签: ASP
  Using the global.asa to schedule ASP code execution. Have you ever had some asp code that needed to execute every once in a while but, you just didn't know how to do it. There is a solution that doesn't involve running any scheduling or scripting software on the server and is actually very easy to get working....
1.以下是我在网上看到的: 有时候我们要计算程序执行的时间.比如我们要对算法进行时间分析 ..这个时候可以使用下面这个函数. #include <sys/time.h int gettimeofday(struct timeval *tv,struct timezone *tz); strut timeval { long tv_sec; /* 秒数 */ long tv_usec; /* 微秒数 */ }; gettimeofday将时间保存在结构tv之中.tz一...
标签: ASP
  一、需求  当前,使用ASP开发动态网页,客户端使用微软公司的IE系列浏览器查看是一种很流行的模式。我们在开发过程中遇到了这样的一个问题,由于技术和时间上的限制,必须在网页中调用一个执行程序。你当然可以用一个超级链接直接指向所需的程序,但这样做会被微软“黑”一下的:每次在IE中打开这个链接时就会出现一个不受欢迎的警...
标签: ASP
  可以用waitfor组件. 下面是国外的一名ASP作者的语句: Developer's often need to have their apps wait a specified number of seconds, detect if a file exists within a particular timeout or wait for exclusive file access within a specified timeout. This component is designed to allow developers to do that from ASP. ...

经验教程

595

收藏

9
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部