Difference between ElapsedTicks, ElapsedMilliseconds, Elapsed.Milliseconds and Elapsed.TotalMilliseconds? (C#)
I'm totally confused between these 4. What is the difference between ElapsedMilliseconds (long), ElapsedTicks (long), Elapsed.TotalMilliseconds (double) and Elapsed.Milliseconds (int)? I have a function { Stopwatch sw = new Stopwatch(); sw.Start(); MyTimeConsumingAction(); sw.Stop(); sw.//what? } How do I get the correct time consumed by my long running process from elapsed property of Stopwatch object in milliseconds? Edit: I tried msdn documentation but it isn't anything detailed there.. Dr. ABT Elapsed.TotalMilliseconds (double) returns the total number of whole and fractional milliseconds