用于测某一方法执行所用的时间:
Stopwatch sw = new Stopwatch();
sw.Start();
//功能代码块
sw.Stop();
long totalTime = sw.ElapsedMilliseconds;
2022-05-11 23:57:14
Stopwatch sw = new Stopwatch();
sw.Start();
//功能代码块
sw.Stop();
long totalTime = sw.ElapsedMilliseconds;
下一篇:Linux 开机引导流程