Interface Time
-
- All Known Implementing Classes:
SystemTime
public interface Time
-
-
Field Summary
Fields Modifier and Type Field Description static DateTimeFormatterDTFstatic TimeSYSTEM
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description longmilliseconds()Returns the current time in milliseconds.longnanoseconds()Returns the current value of the running JVM's high-resolution time source, in nanoseconds.voidsleep(Duration duration)static StringtoISODate()static StringtoISODate(long epochTime)static StringtoISODate(long epochTime, ZoneId zoneId)
-
-
-
Field Detail
-
DTF
static final DateTimeFormatter DTF
-
SYSTEM
static final Time SYSTEM
-
-
Method Detail
-
toISODate
static String toISODate()
-
toISODate
static String toISODate(long epochTime)
-
milliseconds
long milliseconds()
Returns the current time in milliseconds.
-
nanoseconds
long nanoseconds()
Returns the current value of the running JVM's high-resolution time source, in nanoseconds.
-
sleep
void sleep(Duration duration)
-
-