Transaction.Current在x86中很慢

时间:2015-11-05 05:47:13

标签: c# .net sqlite transactions

- 在64位上它可以正常工作

结果:

  • 之前:0

  • 之后:7031

  • 上次:0

Stopwatch stopwatch = Stopwatch.StartNew();

Console.WriteLine(string.Format("Before: {0}", stopwatch.ElapsedMilliseconds));

Transaction transaction = Transaction.Current;

Console.WriteLine(string.Format("After: {0}", stopwatch.ElapsedMilliseconds));

stopwatch.Reset();
Transaction transaction2 = Transaction.Current;

Console.WriteLine(string.Format("Last: {0}", stopwatch.ElapsedMilliseconds));

Console.Read();

0 个答案:

没有答案