using System.Diagnostics;

private Stopwatch stw = new Stopwatch();
stw.Start();
stw.Stop();
MessageBox.Show("程序共运行时间:" + stw.Elapsed.Seconds.ToString() + "");

 

相关文章:

  • 2022-12-23
  • 2021-12-24
  • 2021-07-18
  • 2022-01-15
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-23
  • 2021-07-08
  • 2021-07-19
  • 2021-10-29
  • 2021-09-28
  • 2022-12-23
相关资源
相似解决方案