kieker.monitoring.timer
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.
- Author:
- Jan Waller
Method Summary |
long |
getTime()
Returns the timestamp for the current time. |
String |
toString()
Returns a String representation of the timesource. |
CONFIG_OFFSET
public static final String CONFIG_OFFSET
CONFIG_UNIT
public static final String CONFIG_UNIT
SystemMilliTimer
public SystemMilliTimer(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 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
Copyright 2012 Kieker Project, http://kieker-monitoring.net>