C#性能检测,性能判定
using System.Diagnostics;
Stopwatch timer = new Stopwatch();
timer.Start();
for(....)
timer.Stop();
MessageBox.Show(timer.Elapsed.Ticks.ToString(CultureInfo.InvariantCulture));
原文链接:https://blog.csdn.net/brian0031/article/details/8173228
using System.Diagnostics;
Stopwatch timer = new Stopwatch();
timer.Start();
for(....)
timer.Stop();
MessageBox.Show(timer.Elapsed.Ticks.ToString(CultureInfo.InvariantCulture));
原文链接:https://blog.csdn.net/brian0031/article/details/8173228