|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.util.stats.Clock
public abstract class Clock
An abstraction for how time passes. It is passed to Timer
to track timing.
Nested Class Summary | |
---|---|
static class |
Clock.CpuTimeClock
A clock implementation which returns the current thread's CPU time. |
static class |
Clock.UserTimeClock
A clock implementation which returns the current time in epoch nanoseconds. |
Constructor Summary | |
---|---|
Clock()
|
Method Summary | |
---|---|
static Clock |
defaultClock()
The default clock to use. |
abstract long |
getTick()
Returns the current time tick. |
long |
getTime()
Returns the current time in milliseconds. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Clock()
Method Detail |
---|
public abstract long getTick()
public long getTime()
public static Clock defaultClock()
Clock.UserTimeClock
instanceClock.UserTimeClock
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |