What does ElapsedTicks
and Elapsed.Ticks
in the StopWatch class mean? When could the meaning be different than intended?
Elapsed.Ticks / TimeSpan.TicksPerSecond == ElapsedTicks / Stopwatch.Frequency
Of course this may not exactly equal due to rounding, as Stopwatch ticks and TimeSpan ticks are measured in different units. Also, in case you executed the above code literally, obviously some ticks would elapse between taking the value of Elapsed.Ticks
and that of ElapsedTicks
.