using System.Diagnostics.Stopwatch sw = new Stopwatch(); sw.Start(); /// ReleaseOrdersText方法体 /// sw.Stop(); Response.Write("ReleaseOrdersText方法执行了" + sw.ElapsedTicks + "毫秒 ");