Click or drag to resize

Stopwatch Class

Object to accurately measure elapsed time.
Inheritance Hierarchy
SystemObject
  Crestron.SimplSharpStopwatch

Namespace: Crestron.SimplSharp
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public class Stopwatch

The Stopwatch type exposes the following members.

Constructors
 NameDescription
Public methodStopwatch Initializes a new instance of the Stopwatch class.
Top
Properties
 NameDescription
Public propertyElapsed Gets the total elapsed time measured by the current instance.
Public propertyElapsedMilliseconds Get 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 propertyStatic memberFrequency Gets the frequency of the timer as the number of ticks per second. This field is read-only.
Public propertyStatic memberIsHighResolution Indicates whether the timer is based on a high-resolution performance counter.
Public propertyIsRunning Gets a value indicating if the current Stopwatch timer is running.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetTimestamp Gets the current number of ticks in the timer mechanism.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodReset Stops the current time measurement and resets to elapsed time to zero.
Public methodStart Starts, or resumes, measuring elapsed time.
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.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also