Kieker 1.8

kieker.monitoring.timer
Interface ITimeSource

All Known Implementing Classes:
AbstractTimeSource, SystemMilliTimer, SystemNanoTimer

public interface ITimeSource

Since:
1.3
Author:
Jan Waller

Method Summary
 long getOffset()
           
 long getTime()
           
 TimeUnit getTimeUnit()
           
 String toString()
           
 

Method Detail

getTime

long getTime()
Returns:
The timestamp for the current time in TimeUnit.
Since:
1.3
See Also:
getTimeUnit()

getOffset

long getOffset()
Returns:
The offset of the timesource to 1970-1-1 in TimeUnit.
Since:
1.7
See Also:
getTimeUnit()

getTimeUnit

TimeUnit getTimeUnit()
Returns:
The TimeUnit of the timesource.
Since:
1.7

toString

String toString()
Overrides:
toString in class Object
Returns:
A String representation of the timesource. E.g., the meaning of a timestamp from this source.
Since:
1.5

Kieker 1.8

Copyright 2013 Kieker Project, http://kieker-monitoring.net