用于简单模块,运行时间计量
TimeSpan ts;
private DateTime StartTime;
StartTime = DateTime.Now;//计时器开始
ts = DateTime.Now.Subtract(StartTime);
System.Threading.Thread.Sleep(2000);
response.write("线程启动:" + ts.Days + "天" + ts.Hours + "小时" + ts.Minutes + "分钟"+ts.Seconds+"秒");
response.end