摘要:
1 ConcurrentBag<PackageCheckDataDownLoadDto> pList = new ConcurrentBag<PackageCheckDataDownLoadDto>();//保证线程安全 2 Parallel.ForEach(list, new ParallelOp 阅读全文
摘要:
Stopwatch sw = new Stopwatch(); sw.Start(); //需要计算执行时间代码 sw.Stop(); TimeSpan ts2 = sw.Elapsed; Console.WriteLine("Stopwatch总共花费{0}ms.", ts2.TotalMilli 阅读全文