C#遇见的函数

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

     命名空间:   System.Diagnostics

Stopwatch timePerParse = Stopwatch.StartNew();
int inputNum = Int32.Parse("0");
timePerParse.Stop();
Console.WriteLine(timePerParse.Elapsed);   //00:00:00.0000073
原文地址:https://www.cnblogs.com/code1992/p/9293041.html