| |
|
| java.lang.Object com.anthonyeden.lib.util.Stopwatch
Stopwatch | public class Stopwatch (Code) | | Simple class for starting and stopping a stopwatch. This class
is useful for timing how long a particular block of code takes to
execute.
author: Anthony Eden |
Method Summary | |
public long | getElapsedTime() Get the elapsed time for the stopwatch in milliseconds. | public synchronized void | start() Start the stopwatch. | public synchronized void | stop() Stop the stopwatch. |
getElapsedTime | public long getElapsedTime()(Code) | | Get the elapsed time for the stopwatch in milliseconds.
The elapsed time in milliseconds throws: IllegalStateException - If the stopwatch is running |
|
|
|