- stopWatch.Start() - Starts Stopwatch.
- stopWatch.Stop() - Stops Stopwatch.
- stopWatch.Elapsed - Gets the total elapsed time measured by the current interval.
Stopwatches are often used in benchmarking programs to time code and see how optimal different segments of code take to run.
Creating an Instance of a Stopwatch
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0