guiguan.net
如何在C#中测试程序运行的时间
其实在C#中要实现这个很简单,只要运用DateTime.Now记下程序开始和结束的时间再相减就行了。语法如下: [code lang=”csharp”] DateTime startTime=DateTime.Now; …… DateTime endTime=DateTime.Now; Console.WriteLine("程序运行的…