System.Diagnostics.Stopwatch watch = new Stopwatch(); watch.Start(); //init();计算耗时的方法 watch.Stop(); var mSeconds=watch.ElapsedMilliseconds; MessageBox.Show("耗时:"+mSeconds.ToString());
C#耗时计算
猜你喜欢
转载自www.cnblogs.com/aijiao/p/10144841.html
今日推荐
周排行