📅  最后修改于: 2022-03-11 14:49:16.437000             🧑  作者: Mango
using System.Diagnostics;
// ...
Stopwatch sw = new Stopwatch();
sw.Start();
// ...
sw.Stop();
Console.WriteLine("Elapsed={0}",sw.Elapsed);