Click or drag to resize

Stopwatch Methods

The Stopwatch type exposes the following members.

Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetTimestamp Gets the current number of ticks in the timer mechanism.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodReset Stops the current time measurement and resets to elapsed time to zero.
Public methodStart Starts, or resumes, measuring elapsed time.
Public methodStatic memberStartNew Initializes a new Stopwatch instance, sets the elapsed time property to zero, and starts measuring elapsed time.
Public methodStop Stops measuring elapsed time.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also