using System.Diagnostics;

 

 

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

using (EntityDAO edo = new EntityDAO())
{
     table = edo.GetTest();
}

st.Stop();

//st的时间间隔
Double d = st.ElapsedMilliseconds;

posted on 2010-06-09 17:17  ssyang  阅读(180)  评论(0编辑  收藏  举报