Export (0) Print
Expand All

Stopwatch Members

Provides a set of methods and properties that you can use to accurately measure elapsed time.

The Stopwatch type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Stopwatch Initializes a new instance of the Stopwatch class.
Top

  NameDescription
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework 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 Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework GetTimestamp Gets the current number of ticks in the timer mechanism.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Reset Stops time interval measurement and resets the elapsed time to zero.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Start Starts, or resumes, measuring elapsed time for an interval.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework StartNew Initializes a new Stopwatch instance, sets the elapsed time property to zero, and starts measuring elapsed time.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Stop Stops measuring elapsed time for an interval.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework Frequency Gets the frequency of the timer as the number of ticks per second. This field is read-only.
Public field Static member Supported by the .NET Compact Framework Supported by the XNA Framework IsHighResolution Indicates whether the timer is based on a high-resolution performance counter. This field is read-only.
Top

  NameDescription
Public property Supported by the .NET Compact Framework Supported by the XNA Framework Elapsed Gets the total elapsed time measured by the current instance.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework ElapsedMilliseconds Gets the total elapsed time measured by the current instance, in milliseconds.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework ElapsedTicks Gets the total elapsed time measured by the current instance, in timer ticks.
Public property Supported by the .NET Compact Framework Supported by the XNA Framework IsRunning Gets a value indicating whether the Stopwatch timer is running.
Top

Community Additions

ADD
Show:
© 2014 Microsoft