public static class Clock.Fast extends Clock implements java.io.Closeable
getTime() method returns
instantaneously thanks to a background task that takes care of the
actual time-keeping work.Clock.Fast, Clock.Virtual| Constructor and Description |
|---|
Fast(java.util.concurrent.ScheduledExecutorService executor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getTime()
Returns the current time in milliseconds since the epoch.
|
java.lang.String |
toString() |
getDate, getDateIncreasing, getDateMonotonic, getTimeIncreasing, getTimeMonotonic, getZone, instant, waitUntil, withZonepublic long getTime()
Clockpublic java.lang.String toString()
toString in class java.lang.Objectpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableCopyright © 2010 - 2023 Adobe. All Rights Reserved