安装 Masuit.Tools
HiPerfTimer timer = HiPerfTimer.StartNew();
;耗时操作
timer.Stop();
MessageBox.Show("耗时" + timer.Duration);