Stopwatch Methods

The Stopwatch type exposes the following members.

  Name Description
Public method Supported by the XNA Framework Supported by Portable Class Library Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Supported by the XNA Framework Supported by Portable Class Library 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 GetElapsedDateTimeTicks Gets the high-resolution ticks as DateTime.Ticks if the system is using a high-resolution counter.
Public method Supported by the XNA Framework Supported by Portable Class Library GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetRawElapsedTicks Gets the total elapsed time, including the time since Stopwatch was last started.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library GetTimestamp Gets the current number of ticks in the timer mechanism.
Public method Supported by the XNA Framework Supported by Portable Class Library GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Supported by the XNA Framework Supported by Portable Class Library MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the XNA Framework Supported by Portable Class Library Reset Stops time interval measurement and resets the elapsed time to zero.
Public method Supported by Portable Class Library Restart Stops time interval measurement, resets the elapsed time to zero, and starts measuring elapsed time.
Public method Supported by the XNA Framework Supported by Portable Class Library Start Starts, or resumes, measuring elapsed time for an interval.
Public method Static member Supported by the XNA Framework Supported by Portable Class Library StartNew Initializes a new Stopwatch instance, sets the elapsed time property to zero, and starts measuring elapsed time.
Public method Supported by the XNA Framework Supported by Portable Class Library Stop Stops measuring elapsed time for an interval.
Public method Supported by the XNA Framework Supported by Portable Class Library ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft