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

posted @ 2023-05-28 10:06  .net&new  阅读(35)  评论(0)    收藏  举报