示例代码:
Stopwatch myWatch = new Stopwatch();
myWatch.Start();
//循环列表,添加数据
foreach (SDic item in list)
{
dalSDic.Save(item);
}
myWatch.Stop();
MessageBox.Show(string.Format("执行完毕,新增数据耗时:{0}", myWatch.Elapsed));
时间: 2024-12-29 19:22:06
示例代码:
Stopwatch myWatch = new Stopwatch();
myWatch.Start();
//循环列表,添加数据
foreach (SDic item in list)
{
dalSDic.Save(item);
}
myWatch.Stop();
MessageBox.Show(string.Format("执行完毕,新增数据耗时:{0}", myWatch.Elapsed));