Stopwatch Class

 

程式碼

Stopwatch sw = new Stopwatch();
sw.Start();

//運行的程式

sw.Stop();
Debug.WriteLine("程式執行完成時間共{0}ms.", sw.ElapsedMilliseconds);

arrow
arrow
    全站熱搜

    門外漢 發表在 痞客邦 留言(0) 人氣()