|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.metrics.codahale_metrics.metrics.core.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 |
tick()
Returns the current time tick. |
long |
time()
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 tick()
public long time()
public static Clock defaultClock()
Clock.UserTimeClock
instance
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |