This documentation is archived and is not being maintained.
Provides a set of methods and properties that you can use to accurately measure elapsed time.
The following tables list the members exposed by the Stopwatch type.
|Elapsed||Gets the total elapsed time measured by the current instance.|
|ElapsedMilliseconds||Gets the total elapsed time measured by the current instance, in milliseconds.|
|ElapsedTicks||Gets the total elapsed time measured by the current instance, in timer ticks.|
|IsRunning||Gets a value indicating whether the Stopwatch timer is running.|
(see also Protected Methods )
|Equals||Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)|
|GetTimestamp||Gets the current number of ticks in the timer mechanism.|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|ReferenceEquals||Determines whether the specified Object instances are the same instance. (Inherited from Object.)|
|Reset||Stops time interval measurement and resets the elapsed time to zero.|
|Start||Starts, or resumes, measuring elapsed time for an interval.|
|StartNew||Initializes a new Stopwatch instance, sets the elapsed time property to zero, and starts measuring elapsed time.|
|Stop||Stops measuring elapsed time for an interval.|
|ToString||Returns a String that represents the current Object. (Inherited from Object.)|