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)
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 methodStatic memberGetTimestamp
Gets the current number of ticks in the timer mechanism.
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.
Top
See Also