Class Profiler.Clock

  • Enclosing class:
    Profiler

    static class Profiler.Clock
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) long accumulatedTime  
      (package private) java.lang.Class<?> clazz  
      (package private) long startTimeNanos  
    • Constructor Summary

      Constructors 
      Constructor Description
      Clock​(java.lang.Class<?> clazz, long currentNanoTime)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void accumulateTime​(long currentNanoTime)  
      (package private) void restartClock​(long currentNanoTime)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • clazz

        final java.lang.Class<?> clazz
      • startTimeNanos

        long startTimeNanos
      • accumulatedTime

        long accumulatedTime
    • Constructor Detail

      • Clock

        Clock​(java.lang.Class<?> clazz,
              long currentNanoTime)
    • Method Detail

      • accumulateTime

        void accumulateTime​(long currentNanoTime)
      • restartClock

        void restartClock​(long currentNanoTime)