| java.lang.Object regression.ElapsedTimer
ElapsedTimer | public class ElapsedTimer (Code) | | A simple class for calculating and reporting elapsed system time.
Each timer has a start time and may have an end time. If an
elapsed time value is requested of a timer which doesn't have its
stop time set, the current system time is used.
author: Tom Ball |
Constructor Summary | |
public | ElapsedTimer() Create a new timer. |
ElapsedTimer | public ElapsedTimer()(Code) | | Create a new timer.
|
getElapsedMilliseconds | public long getElapsedMilliseconds()(Code) | | |
getElapsedSeconds | public int getElapsedSeconds()(Code) | | |
reset | final public void reset()(Code) | | Reset the starting time to the current system time.
|
stop | public void stop()(Code) | | Stop the current timer; that is, set its stopTime.
|
|
|