Package com.linkedin.venice.utils
Class SystemTime
java.lang.Object
com.linkedin.venice.utils.SystemTime
- All Implemented Interfaces:
Time
Time
implementation that just reads from the system clock-
Field Summary
Fields inherited from interface com.linkedin.venice.utils.Time
HOURS_PER_DAY, MINUTES_PER_HOUR, MS_PER_DAY, MS_PER_HOUR, MS_PER_MINUTE, MS_PER_SECOND, NS_PER_MS, NS_PER_SECOND, NS_PER_US, SECONDS_PER_DAY, SECONDS_PER_HOUR, SECONDS_PER_MINUTE, US_PER_MS, US_PER_SECOND
-
Constructor Summary
-
Method Summary
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
SystemTime
public SystemTime()
-
-
Method Details
-
getCurrentDate
-
getMilliseconds
public long getMilliseconds()- Specified by:
getMilliseconds
in interfaceTime
-
getNanoseconds
public long getNanoseconds()- Specified by:
getNanoseconds
in interfaceTime
-
getSeconds
public int getSeconds() -
sleep
- Specified by:
sleep
in interfaceTime
- Throws:
InterruptedException
-