public class Timer extends Object
Constructor and Description |
---|
Timer()
Construct a new timer that starts immediatly.
|
Modifier and Type | Method and Description |
---|---|
long |
diff()
Return the number of milliseconds the timer has been running.
|
void |
start()
Start the timer.
|
void |
stop()
Stop the timer.
|
String |
toString()
Return a string representation of the timer.
|
public void start()
public void stop()
public long diff()
Copyright © 1998–2016. All rights reserved.