com.yammer.metrics.core
Class Clock.CpuTime
java.lang.Object
com.yammer.metrics.core.Clock
com.yammer.metrics.core.Clock.CpuTime
- Enclosing class:
- Clock
public static class Clock.CpuTime
- extends Clock
Another implementation, uses ThreadMXBean.getCurrentThreadCpuTime()
| Fields inherited from class com.yammer.metrics.core.Clock |
DEFAULT |
|
Method Summary |
long |
tick()
Gets the current time tick |
| Methods inherited from class com.yammer.metrics.core.Clock |
time |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Clock.CpuTime
public Clock.CpuTime()
tick
public long tick()
- Description copied from class:
Clock
- Gets the current time tick
- Specified by:
tick in class Clock
- Returns:
- time tick in nanoseconds
Copyright © 2011. All Rights Reserved.