Click or drag to resize
Stopwatch Class
Provides a set of methods and properties that you can use to accurately measure elapsed time.
Inheritance Hierarchy
SystemObject
  System.DiagnosticsStopwatch

Namespace: System.Diagnostics
Assembly: CSharpXamlForHtml5.System.dll (in CSharpXamlForHtml5.System.dll.dll) Version: 1.0.0.0
Syntax
C#
public class Stopwatch

The Stopwatch type exposes the following members.

Constructors
  NameDescription
Public methodStopwatch
Initializes a new instance of the System.Diagnostics.Stopwatch class.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReset
Stops time interval measurement and resets the elapsed time to zero.
Public methodRestart
Stops time interval measurement, resets the elapsed time to zero, and starts measuring elapsed time.
Public methodStart
Starts, or resumes, measuring elapsed time for an interval.
Public methodStatic memberStartNew
Initializes a new Stopwatch instance, sets the elapsed time property to zero, and starts measuring elapsed time.
Public methodStop
Stops measuring elapsed time for an interval.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyElapsed
A read-only System.TimeSpan representing the total elapsed time measured by the current instance.
Public propertyElapsedMilliseconds
Gets the total elapsed time measured by the current instance, in milliseconds.
Public propertyElapsedTicks
Gets the total elapsed time measured by the current instance, in timer ticks.
Public propertyIsRunning
Gets a value indicating whether the System.Diagnostics.Stopwatch timer is running.
Top
See Also