using System.Diagnostics; Stopwatch watch = new Stopwatch();
watch.Start();
/*
需要测量运行时间的程序
*/
watch.Stop();
this.BeginInvoke(updateTxt, " (耗时" + (watch.ElapsedMilliseconds / 1000.0) + " s)\r\n", Color.Red);
2023-07-27 12:41:04
using System.Diagnostics; Stopwatch watch = new Stopwatch();
watch.Start();
/*
需要测量运行时间的程序
*/
watch.Stop();
this.BeginInvoke(updateTxt, " (耗时" + (watch.ElapsedMilliseconds / 1000.0) + " s)\r\n", Color.Red);
下一篇:MySQL 存储过程参数