Tuesday, April 26, 2011

stopwatch.Elapsed.Ticks is different from stopwatch.ElapsedTicks

The .NET class `System.Diagnostics.Stopwatch` has a little secret.
stopwatch.Elapsed.Ticks
is the number of 100 nanoseconds elapsed since the start of the stopwatch
stopwatch.ElapsedTicks
is the number of timer ticks, and I don't know what it means