asp中用两个TIMER,做一个时间差就可以了,在.NET中怎么做?

解决方案 »

  1.   

    <%
      Option Explicit
      Dim strStartTime,intUseTime
      strStartTime = timer()
    %><!--程序,页面--><%
      intUseTime = FormatNumber((timer()-strStartTime)*1000,3)
      Response.Write("<br><br><center>共用时 <font color=""#FF0000"">" & intUseTime & "</font> 毫秒</center>")
    %>
      

  2.   

    asp的我知道,asp.net中怎么做?
      

  3.   

    http://community.csdn.net/Expert/topic/4259/4259580.xml?temp=.5757257
      

  4.   

    首先在web.config里面配置trace节(该节属于system.web节),配置如下:<trace enabled = "true"/>
    接着可以访问你要测试的页面,访问之后在打开IE输入http://yourhost/yourApplication/trace.axd就可以看到刚才访问页面时服务器处理请求的详细信息,这个是比较准确的测试方法。