Asp.Net计算程序执行速度
long t1 = DateTime.Now.Ticks;
//执行程序,例如处理100个文件
long t2 = DateTime.Now.Ticks;
Response.Write("执行用时:" + (t2 - t1) + " 毫秒");
//成功一定有方法,失败一定有原因。
long t1 = DateTime.Now.Ticks;
//执行程序,例如处理100个文件
long t2 = DateTime.Now.Ticks;
Response.Write("执行用时:" + (t2 - t1) + " 毫秒");