Package com.linkedin.venice.utils
Class SystemTime
- java.lang.Object
-
- com.linkedin.venice.utils.SystemTime
-
-
Field Summary
Fields Modifier and Type Field Description static SystemTime
INSTANCE
-
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
Constructors Constructor Description SystemTime()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getCurrentDate()
long
getMilliseconds()
long
getNanoseconds()
int
getSeconds()
void
sleep(long ms)
-
-
-
Field Detail
-
INSTANCE
public static final SystemTime INSTANCE
-
-
Method Detail
-
getCurrentDate
public java.util.Date getCurrentDate()
-
getMilliseconds
public long getMilliseconds()
- Specified by:
getMilliseconds
in interfaceTime
-
getNanoseconds
public long getNanoseconds()
- Specified by:
getNanoseconds
in interfaceTime
-
getSeconds
public int getSeconds()
-
-