|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectTimer
public class Timer extends Object
A simple timer implementation. The timer has two states: running and stopped. The timer can be started and stopped multiple times. A newly-constructed timer is in a stopped state. Time is measured in milliseconds, using System.currentTimeMillis().
| Constructor and Description |
|---|
Timer()
Creates a timer. |
| Modifier and Type | Method and Description |
|---|---|
long |
getTimeElapsedMillis()
The total testtime elapsed. |
boolean |
isRunning()
The state of the timer. |
void |
startTiming()
Start counting testtime. |
void |
stopTiming()
Stop counting testtime. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Timer()
| Method Detail |
|---|
public boolean isRunning()
public void startTiming()
public void stopTiming()
public long getTimeElapsedMillis()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||