C#计算过了多长时间
DateTime startTime = DateTime.Now; // do stuff TimeSpan elapsed = DateTime.Now - startTime; Console.WriteLine("response time: {0}",elapsed.TotalSeconds);
C#计算过了多长时间
DateTime startTime = DateTime.Now; // do stuff TimeSpan elapsed = DateTime.Now - startTime; Console.WriteLine("response time: {0}",elapsed.TotalSeconds);