public class Stopwatch
extends java.lang.Object
| Constructor and Description |
|---|
Stopwatch()
Initializes a new instance of the Stopwatch class.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
ElapsedMilliseconds()
Gets the total elapsed time measured by the current instance, in milliseconds.
|
boolean |
isRunning()
Gets a value indicating whether the timer is running.
|
void |
Reset()
Stops time interval measurement and resets the elapsed time to zero.
|
void |
Restart()
Stops time interval measurement, resets the elapsed time to zero, and starts meansuring elapsed time.
|
void |
Start()
Start meansuring elapsed time for an interval.
|
void |
Stop()
Stops meansuring elapsed time for an inverval.
|
public void Start()
public void Stop()
public void Reset()
public void Restart()
public java.lang.Long ElapsedMilliseconds()
public boolean isRunning()