public final class SystemMilliTimer extends AbstractTimeSource
Modifier and Type | Field and 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 and Description |
---|
SystemMilliTimer(Configuration configuration)
Creates a new instance of this class using the given parameters.
|
Modifier and Type | Method and Description |
---|---|
long |
getOffset() |
long |
getTime() |
java.util.concurrent.TimeUnit |
getTimeUnit() |
java.lang.String |
toString() |
getDefaultConfiguration
public static final java.lang.String CONFIG_OFFSET
public static final java.lang.String CONFIG_UNIT
public SystemMilliTimer(Configuration configuration)
configuration
- The configuration for this timer.public final long getTime()
TimeUnit
.ITimeSource.getTimeUnit()
public long getOffset()
TimeUnit
.ITimeSource.getTimeUnit()
public final java.util.concurrent.TimeUnit getTimeUnit()
TimeUnit
of the timesource.public final java.lang.String toString()
toString
in interface ITimeSource
toString
in class AbstractTimeSource
Copyright 2017 Kieker Project, http://kieker-monitoring.net