Kieker 1.5

kieker.monitoring.timer
Class SystemNanoTimer

java.lang.Object
  extended by kieker.monitoring.timer.AbstractTimeSource
      extended by kieker.monitoring.timer.SystemNanoTimer
All Implemented Interfaces:
ITimeSource

public final class SystemNanoTimer
extends AbstractTimeSource

A timer implementation, counting in nanoseconds since a specified offset.

Author:
Jan Waller

Field Summary
static String CONFIG_OFFSET
           
static String CONFIG_UNIT
           
 
Constructor Summary
SystemNanoTimer(Configuration configuration)
           
 
Method Summary
static ITimeSource getInstance()
           
 long getTime()
          Returns the timestamp for the current time.
 String toString()
          Returns a String representation of the timesource.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONFIG_OFFSET

public static final String CONFIG_OFFSET

CONFIG_UNIT

public static final String CONFIG_UNIT
Constructor Detail

SystemNanoTimer

public SystemNanoTimer(Configuration configuration)
Method Detail

getTime

public final long getTime()
Description copied from interface: ITimeSource
Returns the timestamp for the current time. Usually, the timestamp is assumed to be in TimeUnit.NANOSECONDS.


toString

public final String toString()
Description copied from interface: ITimeSource
Returns a String representation of the timesource. E.g., the meaning of a timestamp from this source.

Specified by:
toString in interface ITimeSource
Specified by:
toString in class AbstractTimeSource

getInstance

public static final ITimeSource getInstance()
Returns:
a singleton instance of SystemNanoTimer

Kieker 1.5

Copyright 2012 the Kieker Project, http://kieker-monitoring.net