Stopwatch Methods
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
The Stopwatch type exposes the following members.
| Name | Description | |
|---|---|---|
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
|
GetElapsedDateTimeTicks | Gets the number of ticks that represent the date and time of this instance. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetRawElapsedTicks | Gets the total elapsed time measured by the current instance, in timer ticks. |
|
GetTimestamp | Gets the current number of ticks in the timer mechanism. |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Reset | Stops time interval measurement and resets the elapsed time to zero. |
|
Restart | Stops time interval measurement, resets the elapsed time to zero, and starts measuring elapsed time. |
|
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.) |
Show: