Stopwatch Class |
public class Stopwatch
The Stopwatch type exposes the following members.
| Name | Description | |
|---|---|---|
| Elapsed | Gets the total elapsed time measured by the current instance. | |
| ElapsedMilliseconds | Get 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. | |
| Frequency | Gets the frequency of the timer as the number of ticks per second. This field is read-only. | |
| IsHighResolution | Indicates whether the timer is based on a high-resolution performance counter. | |
| IsRunning | Gets a value indicating if the current Stopwatch timer is running. |
| Name | Description | |
|---|---|---|
| Equals | 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 it is reclaimed by garbage collection. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (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) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Reset | Stops the current time measurement and resets to elapsed time to zero. | |
| Start | Starts, or resumes, measuring elapsed time. | |
| StartNew | Initializes a new Stopwatch instance, sets the elapsed time property to zero, and starts measuring elapsed time. | |
| Stop | Stops measuring elapsed time. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |