C#性能检测,性能判定

.net&new / 2023-05-28 / 原文

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