public class StopWatch
extends java.lang.Object
Constructor | Description |
---|---|
StopWatch(java.io.PrintStream out) |
Modifier and Type | Method | Description |
---|---|---|
long |
getTime() |
Return the cumulative time
|
void |
pause() |
Pause the stopwatch
|
void |
println(java.lang.String text) |
|
void |
reset() |
Reset the stopwatch
|
void |
resume() |
Resume the stopwatch
|
void |
start() |
Start the stopwatch
|
java.lang.String |
toString() |
public void start()
public void pause()
public void resume()
public long getTime()
public void reset()
public java.lang.String toString()
toString
in class java.lang.Object
public void println(java.lang.String text)