Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.jorphan.timer
Class JavaSystemTimer  view JavaSystemTimer download JavaSystemTimer.java

java.lang.Object
  extended byorg.apache.jorphan.timer.AbstractTimer
      extended byorg.apache.jorphan.timer.JavaSystemTimer
All Implemented Interfaces:
ITimer, ITimerConstants

final class JavaSystemTimer
extends AbstractTimer

A package-private implementation of ITimer based around Java system timer [System.currentTimeMillis() method]. It is used when HRTimer implementation is unavailable.

TimerFactory acts as the Factory for this class.

MT-safety: an instance of this class is safe to be used within the same thread only.

Version:
$Revision: 1.5 $

Field Summary
 
Fields inherited from class org.apache.jorphan.timer.AbstractTimer
STATE_NAMES, STATE_READY, STATE_STARTED, STATE_STOPPED
 
Constructor Summary
(package private) JavaSystemTimer()
           
 
Method Summary
protected  double getCurrentTime()
           
 
Methods inherited from class org.apache.jorphan.timer.AbstractTimer
getDuration, reset, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaSystemTimer

JavaSystemTimer()
Method Detail

getCurrentTime

protected double getCurrentTime()
Specified by:
getCurrentTime in class AbstractTimer