1、类Stopwatch    提供一组方法和属性,可用于准确地测量运行时间。

     命名空间:   System.Diagnostics

Stopwatch timePerParse = Stopwatch.StartNew();
int inputNum = Int32.Parse("0");
timePerParse.Stop();
Console.WriteLine(timePerParse.Elapsed);   //00:00:00.0000073

 

相关文章:

  • 2022-02-10
  • 2021-12-27
  • 2021-06-17
  • 2022-12-23
  • 2021-07-13
  • 2021-10-20
  • 2021-12-03
猜你喜欢
  • 2022-12-23
  • 2021-11-19
  • 2021-10-23
  • 2022-01-09
  • 2021-08-20
  • 2022-12-23
  • 2022-03-10
相关资源
相似解决方案