Interface TimeProvider
- All Known Implementing Classes:
OffsetTimeProvider
public interface TimeProvider
Interface to provide the current time
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns current time in millisecondslongReturns current time in seconds
-
Method Details
-
currentTimeSeconds
long currentTimeSeconds()Returns current time in seconds- Returns:
- see description
-
currentTimeMillis
long currentTimeMillis()Returns current time in milliseconds- Returns:
- see description
-