Class CpuTimeClock

java.lang.Object
com.codahale.metrics.Clock
com.codahale.metrics.jvm.CpuTimeClock

public class CpuTimeClock extends com.codahale.metrics.Clock
A clock implementation which returns the current thread's CPU time.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.codahale.metrics.Clock

    com.codahale.metrics.Clock.UserTimeClock
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
     

    Methods inherited from class com.codahale.metrics.Clock

    defaultClock, getTime

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CpuTimeClock

      public CpuTimeClock()
  • Method Details

    • getTick

      public long getTick()
      Specified by:
      getTick in class com.codahale.metrics.Clock