|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.utils.SystemTime
public class SystemTime
Time implementation that just reads from the system clock
Field Summary | |
---|---|
static SystemTime |
INSTANCE
|
Fields inherited from interface voldemort.utils.Time |
---|
HOURS_PER_DAY, MS_PER_DAY, MS_PER_HOUR, MS_PER_SECOND, NS_PER_MS, NS_PER_SECOND, NS_PER_US, SECONDS_PER_DAY, SECONDS_PER_HOUR, US_PER_MS, US_PER_SECOND |
Constructor Summary | |
---|---|
SystemTime()
|
Method Summary | |
---|---|
java.util.Date |
getCurrentDate()
|
long |
getMilliseconds()
|
long |
getNanoseconds()
|
int |
getSeconds()
|
void |
sleep(long ms)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SystemTime INSTANCE
Constructor Detail |
---|
public SystemTime()
Method Detail |
---|
public java.util.Date getCurrentDate()
getCurrentDate
in interface Time
public long getMilliseconds()
getMilliseconds
in interface Time
public long getNanoseconds()
getNanoseconds
in interface Time
public int getSeconds()
getSeconds
in interface Time
public void sleep(long ms) throws java.lang.InterruptedException
sleep
in interface Time
java.lang.InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |