Package io.activej.common.time
Interface CurrentTimeProvider
public interface CurrentTimeProvider
Gives access to current time in milliseconds
-
Method Summary
Modifier and TypeMethodDescriptiondefault InstantReturns current time as anInstantlongReturns current time in millisecondsstatic CurrentTimeProviderofSystem()Returns a provider of current time that usesSystem.currentTimeMillis()
-
Method Details
-
currentTimeMillis
long currentTimeMillis()Returns current time in milliseconds -
currentInstant
Returns current time as anInstant -
ofSystem
Returns a provider of current time that usesSystem.currentTimeMillis()
-