摘要:
System.Diagnostics.Stopwatch stopWatch2= new System.Diagnostics.Stopwatch();stopWatch2.Start();// the code that you want to know the time beingcomsumed.stopWatch2.Stop();string resTotal = stopWatch2.Elapsed.TotalMilliseconds.ToString(); 阅读全文