Export (0) Print
Expand All

Stopwatch Members

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

The following tables list the members exposed by the Stopwatch type.

  Name Description
Public method Supported by the XNA Framework Stopwatch Initializes a new instance of the Stopwatch class.
Top

  Name Description
Public field Static 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 Supported by the XNA Framework IsHighResolution Indicates whether the timer is based on a high-resolution performance counter. This field is read-only.
Top

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

(see also Protected Methods )
  Name Description
Public method Supported by the XNA Framework Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Supported by the XNA Framework GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method Static Supported by the XNA Framework GetTimestamp Gets the current number of ticks in the timer mechanism.
Public method Supported by the XNA Framework GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Supported by the XNA Framework Reset Stops time interval measurement and resets the elapsed time to zero.
Public method Supported by the XNA Framework Start Starts, or resumes, measuring elapsed time for an interval.
Public method Static 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 XNA Framework Stop Stops measuring elapsed time for an interval.
Public method Supported by the XNA Framework ToString  Returns a String that represents the current Object. (inherited from Object)
Top

  Name Description
Protected method Supported by the XNA Framework Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method Supported by the XNA Framework MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top

Community Additions

ADD
Show:
© 2014 Microsoft