- 在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();