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, withZone
public long getTime()
Clock
public java.lang.String toString()
toString
in class java.lang.Object
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
Copyright © 2010 - 2020 Adobe. All Rights Reserved