MS_PER_DAY, MS_PER_HOUR, MS_PER_SECOND, MS_PER_SECOND_AS_FLOAT, NS_PER_MS, NS_PER_SECOND, NS_PER_SECOND_AS_FLOAT, NS_PER_US, SECONDS_PER_DAY, SECONDS_PER_HOUR, US_PER_MS, US_PER_SECOND, US_PER_SECOND_AS_FLOAT| Constructor and Description |
|---|
SystemTime() |
| Modifier and Type | Method and Description |
|---|---|
static Time |
get()
Get an instance (shared) of this object
|
Date |
getCurrentDate()
Get the current date
|
long |
getMicroseconds()
Get the current microseconds
|
long |
getMilliseconds()
Get the current milliseconds
|
long |
getNanoseconds()
Get the current nanoseconds
|
int |
getSeconds()
Get the current seconds
|
void |
sleep(long milliseconds)
Current thread should sleep for some number of milliseconds.
|
public long getMilliseconds()
TimegetMilliseconds in interface Timepublic long getMicroseconds()
TimegetMicroseconds in interface Timepublic long getNanoseconds()
TimegetNanoseconds in interface Timepublic int getSeconds()
TimegetSeconds in interface Timepublic Date getCurrentDate()
TimegetCurrentDate in interface Timepublic void sleep(long milliseconds)
throws InterruptedException
Timesleep in interface Timemilliseconds - Milliseconds to sleep forInterruptedExceptionpublic static Time get()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.