Represents a high-resolution timer.
More...
|
|
void | Reset () |
| | Resets the timer to its initial state.
|
|
void | Restart () |
| | Restarts the timer, setting the elapsed time to zero and starting it.
|
|
void | Start () |
| | Starts the timer if it is not already running.
|
|
void | Stop () |
| | Stops the timer if it is running and updates the elapsed time.
|
|
|
readonly double | ElapsedInMilliseconds [get] |
| | Gets the elapsed time in milliseconds.
|
|
readonly double | ElapsedInSeconds [get] |
| | Gets the elapsed time in seconds.
|
|
readonly long | ElapsedInTicks [get] |
| | Gets the elapsed time in ticks.
|
|
readonly bool | IsRunning [get] |
| | Gets a value indicating whether the timer is running.
|
Represents a high-resolution timer.
◆ StartNew()
Creates and starts a new timer.
- Returns
- A new instance of the Timer struct.