TimeSpan.Milliseconds does not return the number of milliseconds in the timespan, but TotalMilliseconds does.