A simple interface for measuring time intervals. An instance of this goes
through the following lifecycle states:
- ready
- timer is ready to start a new measurement
- started
- timer has recorded the starting time interval point
- stopped
- timer has recorded the ending time interval point
See individual methods for details.
If this library has been compiled with
ITimerConstants.DO_STATE_CHECKS set to 'true' the implementation will
enforce this lifecycle model and throw IllegalStateException when it is
violated.
author: Vlad Roubtsov author: Originally published in author: href="http://www.javaworld.com/javaworld/javaqa/2003-01/01-qa-0110-timing.html">JavaWorld version: $Revision: 493784 $ |