Package kieker.monitoring.timer
Interface ITimeSource
- All Known Implementing Classes:
AbstractTimeSource,SystemMilliTimer,SystemNanoTimer
public interface ITimeSource
- Since:
- 1.3
- Author:
- Jan Waller
-
Method Summary
-
Method Details
-
getTime
long getTime()- Returns:
- The timestamp for the current time in
TimeUnit. - Since:
- 1.3
- See Also:
-
getOffset
long getOffset()- Returns:
- The offset of the timesource to 1970-1-1 in
TimeUnit. - Since:
- 1.7
- See Also:
-
getTimeUnit
TimeUnit getTimeUnit()- Returns:
- The
TimeUnitof the timesource. - Since:
- 1.7
-
toString
String toString()
-