|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.skeet.jbench.CPUTimer
Timer using the JVM profiling API to get more accurate timing.
Constructor Summary | |
CPUTimer()
|
Method Summary | |
void |
configure(java.util.Properties props)
Configures the timer. |
long |
getTime()
Returns the time using the System.currentTimeMillis() if the library hasn't been loaded successfully (just in case configure isn't called by clients) or the CPU thread time otherwise. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CPUTimer()
Method Detail |
public void configure(java.util.Properties props) throws ConfigurationException
BenchTimer
configure
in interface BenchTimer
BenchTimer.configure(Properties)
public long getTime()
getTime
in interface BenchTimer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |