|
Kieker 1.7 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kieker.monitoring.timer.AbstractTimeSource kieker.monitoring.timer.SystemNanoTimer
public final class SystemNanoTimer
A timer implementation, counting in nanoseconds since a specified offset.
Field Summary | |
---|---|
static String |
CONFIG_OFFSET
This is the name of the configuration determining the used offset (in nanoseconds). |
static String |
CONFIG_UNIT
This is the name of the configuration determining the used time unit (0 = nanoseconds, 1 = microseconds, 2 = milliseconds, 3 = seconds). |
Constructor Summary | |
---|---|
SystemNanoTimer(Configuration configuration)
Creates a new instance of this class using the given parameters. |
Method Summary | |
---|---|
static ITimeSource |
getInstance()
Deprecated. to be removed in Kieker 1.8 |
long |
getOffset()
|
long |
getTime()
|
TimeUnit |
getTimeUnit()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String CONFIG_OFFSET
public static final String CONFIG_UNIT
Constructor Detail |
---|
public SystemNanoTimer(Configuration configuration)
configuration
- The configuration for this timer.Method Detail |
---|
public final long getTime()
TimeUnit
.ITimeSource.getTimeUnit()
public long getOffset()
TimeUnit
.ITimeSource.getTimeUnit()
public final TimeUnit getTimeUnit()
TimeUnit
of the timesource.public final String toString()
toString
in interface ITimeSource
toString
in class AbstractTimeSource
@Deprecated public static final ITimeSource getInstance()
|
Kieker 1.7 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |