com.yammer.metrics.core
Class Clock.CpuTime

java.lang.Object
  extended by com.yammer.metrics.core.Clock
      extended by com.yammer.metrics.core.Clock.CpuTime
Enclosing class:
Clock

public static class Clock.CpuTime
extends Clock

Another implementation, uses ThreadMXBean.getCurrentThreadCpuTime()


Nested Class Summary
 
Nested classes/interfaces inherited from class com.yammer.metrics.core.Clock
Clock.CpuTime, Clock.UserTime
 
Field Summary
 
Fields inherited from class com.yammer.metrics.core.Clock
DEFAULT
 
Constructor Summary
Clock.CpuTime()
           
 
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
 

Constructor Detail

Clock.CpuTime

public Clock.CpuTime()
Method Detail

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.