uk.org.skeet.jbench
Interface BenchTimer

All Known Implementing Classes:
CPUTimer, ClockTimer

public interface BenchTimer

Interface representing a timer to be used to measure the performance of tasks.


Method Summary
 void configure(java.util.Properties props)
          Configures the timer.
 long getTime()
          Returns the "current time" in ms according to the timer.
 

Method Detail

configure

public void configure(java.util.Properties props)
               throws ConfigurationException
Configures the timer. This is called before any measurements are taken. Any initialisation should take place here.

getTime

public long getTime()
Returns the "current time" in ms according to the timer. The exact meaning of this will depend on the implementation.