摘要: 只为自己方便使用。View Code using (SQLiteConnection conn = new SQLiteConnection(SQLiteHelper.connectionString)) { conn.Open(); using (SQLiteTransaction trans = conn.BeginTransaction()) { SQLiteCommand cmd = new SQLiteCommand(); ... 阅读全文
posted @ 2013-02-16 13:24 Ruicky 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 主要是为了检测 执行 插入数据库时候那段代码的执行时间在网上整理收集得到,做个备注,方便以后使用。View Code using System.Diagnostics;Stopwatch sw = new Stopwatch();sw.Start();//这里填写要执行的代码sw.Stop();Console.WriteLine("总运行时间:" + sw.Elapsed);Console.WriteLine("测量实例得出的总运行时间(毫秒为单位):" + sw.ElapsedMilliseconds);Console.WriteLine(" 阅读全文
posted @ 2013-02-16 13:20 Ruicky 阅读(227) 评论(0) 推荐(0) 编辑