Class SystemMilliTimer

java.lang.Object
kieker.monitoring.timer.AbstractTimeSource
kieker.monitoring.timer.SystemMilliTimer
All Implemented Interfaces:
ITimeSource

public final class SystemMilliTimer
extends AbstractTimeSource
A timer implementation, counting in milliseconds since a specified offset.
Since:
1.5
Author:
Jan Waller
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String CONFIG_OFFSET
    The name of the configuration for the offset.
    static java.lang.String CONFIG_UNIT
    The name of the configuration for the time unit (0 = nanoseconds, 1 = microseconds, 2 = milliseconds, 3 = seconds).
  • Constructor Summary

    Constructors 
    Constructor Description
    SystemMilliTimer​(Configuration configuration)
    Creates a new instance of this class using the given parameters.
  • Method Summary

    Modifier and Type Method Description
    long getOffset()  
    long getTime()  
    java.util.concurrent.TimeUnit getTimeUnit()  
    java.lang.String toString()  

    Methods inherited from class kieker.monitoring.timer.AbstractTimeSource

    getDefaultConfiguration

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • CONFIG_OFFSET

      public static final java.lang.String CONFIG_OFFSET
      The name of the configuration for the offset.
    • CONFIG_UNIT

      public static final java.lang.String CONFIG_UNIT
      The name of the configuration for the time unit (0 = nanoseconds, 1 = microseconds, 2 = milliseconds, 3 = seconds).
  • Constructor Details

    • SystemMilliTimer

      public SystemMilliTimer​(Configuration configuration)
      Creates a new instance of this class using the given parameters.
      Parameters:
      configuration - The configuration for this timer.
  • Method Details