JFlex
public class Timer extends Object
Constructor Summary | |
---|---|
Timer()
Construct a new timer that starts immediatly. |
Method Summary | |
---|---|
long | diff()
Return the number of milliseconds the timer has been running.
(up till now, if it still runs, up to the stop time if it has been stopped) |
void | start()
Start the timer. |
void | stop()
Stop the timer. |
String | toString()
Return a string representation of the timer.
|
Returns: a string displaying the diff-time in readable format (h m s ms)
See Also: Timer