uk.org.skeet.jbench
Class ClockTimer

java.lang.Object
  |
  +--uk.org.skeet.jbench.ClockTimer
All Implemented Interfaces:
BenchTimer

public class ClockTimer
extends java.lang.Object
implements BenchTimer

Timer measuring wall-clock time using System.currentTimeMillis()


Constructor Summary
ClockTimer()
           
 
Method Summary
 void configure(java.util.Properties props)
          Configures the timer.
 long getTime()
          Returns the "current time" in ms according to the timer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClockTimer

public ClockTimer()
Method Detail

configure

public void configure(java.util.Properties props)
Description copied from interface: BenchTimer
Configures the timer. This is called before any measurements are taken. Any initialisation should take place here.
Specified by:
configure in interface BenchTimer
See Also:
BenchTimer.configure(Properties)

getTime

public long getTime()
Description copied from interface: BenchTimer
Returns the "current time" in ms according to the timer. The exact meaning of this will depend on the implementation.
Specified by:
getTime in interface BenchTimer
See Also:
BenchTimer.getTime()