C# 耗时分析

耗时分析

System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch();
watch.Start();
**计算xxx**
watch.Stop();
//用时
float time = watch.ElapsedMilliseconds / 1000.0f;

猜你喜欢

转载自blog.csdn.net/qq_26318597/article/details/129883661
今日推荐