Represents a high-resolution timer. More...
Public Member Functions | |
void | Reset () |
Resets the timer to its initial state. More... | |
void | Restart () |
Restarts the timer, setting the elapsed time to zero and starting it. More... | |
void | Start () |
Starts the timer if it is not already running. More... | |
void | Stop () |
Stops the timer if it is running and updates the elapsed time. More... | |
Static Public Member Functions | |
static StopwatchTimer | StartNew () |
Creates and starts a new timer. More... | |
Properties | |
double | ElapsedInMilliseconds [get] |
Gets the elapsed time in milliseconds. More... | |
double | ElapsedInSeconds [get] |
Gets the elapsed time in seconds. More... | |
long? | ElapsedInTicks [get] |
Gets the elapsed time in ticks. More... | |
bool | IsRunning [get] |
Gets a value indicating whether the timer is running. More... | |
Represents a high-resolution timer.
|
inlinestatic |
Creates and starts a new timer.
|
inline |
Starts the timer if it is not already running.
|
inline |
Stops the timer if it is running and updates the elapsed time.
|
inline |
Resets the timer to its initial state.
|
inline |
Restarts the timer, setting the elapsed time to zero and starting it.
|
get |
Gets the elapsed time in ticks.
|
get |
Gets the elapsed time in milliseconds.
|
get |
Gets the elapsed time in seconds.
|
get |
Gets a value indicating whether the timer is running.