Interface SystemTime

  • All Known Implementing Classes:
    DefaultSystemTime

    public interface SystemTime
    Interface to do system time modularized, mockable and testable.

    Usually will DefaultSystemTime implementation be sufficient.

    • Method Detail

      • getSystemTime

        java.util.Date getSystemTime()
        Method that returns the current system time in milliseconds
        Returns:
        current system time in milliseconds in date format.
      • getSystemTimeMS

        long getSystemTimeMS()
        Method that returns the current system time in milliseconds
        Returns:
        current system time in milliseconds.