kieker.monitoring.timer
Class SystemNanoTimer
java.lang.Object
kieker.monitoring.timer.AbstractTimeSource
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
CONFIG_OFFSET
public static final String CONFIG_OFFSET
CONFIG_UNIT
public static final String CONFIG_UNIT
SystemNanoTimer
public SystemNanoTimer(Configuration configuration)
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
Copyright 2012 Kieker Project, http://kieker-monitoring.net>