Package kieker.monitoring.timer
Class ZeroTimer
java.lang.Object
kieker.monitoring.timer.AbstractTimeSource
kieker.monitoring.timer.ZeroTimer
- All Implemented Interfaces:
ITimeSource
A timer implementation that just returns zero for overhead measurement purposes.
- Since:
- 2.0.4
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class kieker.monitoring.timer.AbstractTimeSource
getDefaultConfiguration
-
Constructor Details
-
ZeroTimer
-
-
Method Details
-
getTime
public long getTime()- Returns:
- The timestamp for the current time in
TimeUnit. - See Also:
-
getOffset
public long getOffset()- Returns:
- The offset of the timesource to 1970-1-1 in
TimeUnit. - See Also:
-
getTimeUnit
- Returns:
- The
TimeUnitof the timesource.
-
toString
- Specified by:
toStringin interfaceITimeSource- Specified by:
toStringin classAbstractTimeSource- Returns:
- A String representation of the timesource. E.g., the meaning of a timestamp from this source.
-