测试应用程序运行的总耗费时间:
//在应用load处添加以下代码 
long start; 
start = Timer(); 
//在应用程序运行结束前添加以下代码  
Response.Write("总耗费时间 " + (Timer() - start).ToString() + "毫秒"); 
    
//调用的时间函数 
private long Timer() 
{ 
 return (DateTime.Now.Hour * 3600 + DateTime.Now.Minute * 60 + DateTime.Now.Second) * 1000 + DateTime.Now.Millisecond; 
}
                    
                
                
            
        
浙公网安备 33010602011771号