Package net.apartium.cocoabeans.utils
Interface TimeProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TimeProvidercreate()Create a TimeProvider using the system timestatic TimeProviderCreate a TimeProvider using the given clocklonggetTime()Get the current time in milliseconds
-
Method Details
-
create
Create a TimeProvider using the given clock- Parameters:
clock- clock instance- Returns:
- TimeProvider instance
- See Also:
-
create
Create a TimeProvider using the system time- Returns:
- TimeProvider instance
-
getTime
long getTime()Get the current time in milliseconds- Returns:
- current time in milliseconds
-