eightHundreds
11/11/2016 - 4:08 AM

运行时间计算

运行时间计算

Stopwatch sw = new Stopwatch();
sw.Start();
Thread.Sleep(2719);
sw.Stop();
Console.WriteLine(sw.ElapsedTicks / (decimal)Stopwatch.Frequency);