![]() | Stopwatch Class |
Namespace: Crestron.SimplSharp
public class Stopwatch
The Stopwatch type exposes the following members.
Name | Description | |
---|---|---|
![]() | Elapsed |
Gets the total elapsed time measured by the current instance.
|
![]() | ElapsedMilliseconds |
Get the total elapsed time measured by the current instance, in milliseconds.
|
![]() | ElapsedTicks |
Gets the total elapsed time measured by the current instance, in timer ticks.
|
![]() ![]() | Frequency |
Gets the frequency of the timer as the number of ticks per second. This field is read-only.
|
![]() ![]() | IsHighResolution |
Indicates whether the timer is based on a high-resolution performance counter.
|
![]() | IsRunning |
Gets a value indicating if the current Stopwatch timer is running.
|
Name | Description | |
---|---|---|
![]() ![]() | GetTimestamp |
Gets the current number of ticks in the timer mechanism.
|
![]() | Reset |
Stops the current time measurement and resets to elapsed time to zero.
|
![]() | Start |
Starts, or resumes, measuring elapsed time.
|
![]() ![]() | StartNew |
Initializes a new Stopwatch instance, sets the elapsed time property to zero, and starts measuring elapsed time.
|
![]() | Stop |
Stops measuring elapsed time.
|