Interface Clock

All Known Subinterfaces:
PreciseClock
All Known Implementing Classes:
CachedClock, CoarseCachedClock, SystemClock, SystemMillisClock

public interface Clock
Provides the time stamp used in log events.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the time in milliseconds since the epoch.
  • Method Details

    • currentTimeMillis

      long currentTimeMillis()
      Returns the time in milliseconds since the epoch.
      Returns:
      the time in milliseconds since the epoch