Stopwatch
This class wraps a System.Diagnostics.Stopwatch on operating systems that support it. On those that don't,
it replicates the functionality at the resolution supported.
Gets the frequency of the timer as the number of ticks per second.
Indicates whether the timer is based on a high-resolution performance counter.
Gets the total elapsed time measured by the current instance, in milliseconds.
Gets a value indicating whether the Stopwatch timer is running.
public Stopwatch()
Gets the current number of ticks in the timer mechanism.
Initializes a new Stopwatch instance, sets the elapsed time property to zero, and starts measuring elapsed time.
Stops time interval measurement and resets the elapsed time to zero.
Stops time interval measurement, resets the elapsed time to zero, and starts measuring elapsed time.
Starts, or resumes, measuring elapsed time for an interval.
Stops measuring elapsed time for an interval.