public final class SystemNanoTimer extends AbstractTimeSource
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_OFFSET
This is the name of the configuration determining the used offset (in nanoseconds).
|
static java.lang.String |
CONFIG_UNIT
This is the name of the configuration determining the used time unit (0 = nanoseconds, 1 = microseconds, 2 = milliseconds, 3 = seconds).
|
| Constructor and Description |
|---|
SystemNanoTimer(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() |
getDefaultConfigurationpublic static final java.lang.String CONFIG_OFFSET
public static final java.lang.String CONFIG_UNIT
public SystemNanoTimer(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 ITimeSourcetoString in class AbstractTimeSourceCopyright 2017 Kieker Project, http://kieker-monitoring.net