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