标签:
private string RunningTime() { Stopwatch sw = new Stopwatch(); sw.Start(); for (int i = 0; i < 1000;i++ ) { Thread.Sleep(10); } return sw.Elapsed.ToString();
计算程序运行时间
原文地址:http://www.cnblogs.com/liumengchen-boke/p/5725626.html