C# 统计函数运行时间

using System.Diagnostics;
   
Stopwatch st = new Stopwatch();
                st.Start();
                st.Stop();
                long timeCount = st.ElapsedMilliseconds;

                st.Reset();

  

posted @ 2011-11-02 17:44  走路到纽约  阅读(353)  评论(0编辑  收藏  举报