Interface ITimeSource

All Known Implementing Classes:
AbstractTimeSource, SystemMilliTimer, SystemNanoTimer

public interface ITimeSource
Since:
1.3
Author:
Jan Waller
  • 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 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