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