0 out of 3 rated this helpful - Rate this topic

Stopwatch Class

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

System.Object
  System.Diagnostics.Stopwatch

Namespace:  System.Diagnostics
Assembly:  System (in System.dll)
public class Stopwatch

The Stopwatch type exposes the following members.

  Name Description
Public method Supported by Xbox 360 Stopwatch Initializes a new instance of the Stopwatch class.
Top
  Name Description
Public property Supported by Xbox 360 Elapsed Gets the total elapsed time measured by the current instance.
Public property Supported by Xbox 360 ElapsedMilliseconds Gets the total elapsed time measured by the current instance, in milliseconds.
Public property Supported by Xbox 360 ElapsedTicks Gets the total elapsed time measured by the current instance, in timer ticks.
Public property Supported by Xbox 360 IsRunning Gets a value indicating whether the Stopwatch timer is running.
Top
  Name Description
Public method Supported by Xbox 360 Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by Xbox 360 Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by Xbox 360 GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method Static member Supported by Xbox 360 GetTimestamp Gets the current number of ticks in the timer mechanism.
Public method Supported by Xbox 360 GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method Supported by Xbox 360 MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by Xbox 360 Reset Stops time interval measurement and resets the elapsed time to zero.
Public method Supported by Xbox 360 Start Starts, or resumes, measuring elapsed time for an interval.
Public method Static member Supported by Xbox 360 StartNew Initializes a new Stopwatch instance, sets the elapsed time property to zero, and starts measuring elapsed time.
Public method Supported by Xbox 360 Stop Stops measuring elapsed time for an interval.
Public method Supported by Xbox 360 ToString Returns a string that represents the current object. (Inherited from Object.)
Top
  Name Description
Public field Static member Supported by Xbox 360 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 Xbox 360 IsHighResolution Indicates whether the timer is based on a high-resolution performance counter. This field is read-only.
Top

XNA Framework

Supported in: Xbox 360

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Stopwatch doesn't exist in sl4+
This is why msdn is terrible.  I spent 30 minutes looking into why I can't find this in SL4 and I find it by a comment...
This page is wrong
As of SL4, there is no Stopwatch class.
This does not exist in Silverlight
As title