System.Diagnostics.Stopwatch stop = new System.Diagnostics.Stopwatch();
stop.Start();//计算任务完成速度

//需要计算执行时间的代码

 stop.Stop();

Console.WriteLine(stop.Elapsed);

相关文章:

  • 2021-07-04
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2021-05-23
  • 2021-08-21
  • 2021-12-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-23
  • 2021-09-10
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
相关资源
相似解决方案