Interface SystemTime
-
- All Known Implementing Classes:
DefaultSystemTime
public interface SystemTimeInterface to do system time modularized, mockable and testable.Usually will DefaultSystemTime implementation be sufficient.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.DategetSystemTime()Method that returns the current system time in millisecondslonggetSystemTimeMS()Method that returns the current system time in milliseconds
-
-
-
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.
-
-