前言可以計算程式執行時間或是用來找出程式執行效能問題2.說明加入命名空間: using System.Diagnostics; 程式碼:計算1加到1000000的總和跑迴圈的時間privat.
einboch.pixnet.net