Export (0) Print
Expand All

Stopwatch Methods

The Stopwatch type exposes the following members.

  NameDescription
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Static member GetTimestamp Gets the current number of ticks in the timer mechanism.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Reset Stops time interval measurement and resets the elapsed time to zero.
Public method Restart Stops time interval measurement, resets the elapsed time to zero, and starts measuring elapsed time.
Public method Start Starts, or resumes, measuring elapsed time for an interval.
Public method Static member StartNew Initializes a new Stopwatch instance, sets the elapsed time property to zero, and starts measuring elapsed time.
Public method Stop Stops measuring elapsed time for an interval.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft