C# 统计函数运行时间
using System.Diagnostics;
Stopwatch st = new Stopwatch();
st.Start();
st.Stop();
long timeCount = st.ElapsedMilliseconds;
st.Reset();
using System.Diagnostics;
Stopwatch st = new Stopwatch();
st.Start();
st.Stop();
long timeCount = st.ElapsedMilliseconds;
st.Reset();