System.Diagnostics.Stopwatch watch = new Stopwatch();
            watch.Start();
//init();计算耗时的方法
   watch.Stop();
   var mSeconds=watch.ElapsedMilliseconds;
   MessageBox.Show("耗时:"+mSeconds.ToString());

 

相关文章:

  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
  • 2023-01-12
相关资源
相似解决方案