public static class Clock.Virtual extends Clock
Clock.Fast, Clock.Virtual| Constructor and Description |
|---|
Virtual() |
| Modifier and Type | Method and Description |
|---|---|
long |
getTime()
Returns the current time in milliseconds since the epoch.
|
java.lang.String |
toString() |
void |
waitUntil(long timestamp)
Waits until the given point in time is reached.
|
getDate, getDateIncreasing, getDateMonotonic, getTimeIncreasing, getTimeMonotonic, getZone, instant, withZonepublic long getTime()
Clockpublic void waitUntil(long timestamp)
ClockClock.getTimeIncreasing() method returns
a time that's equal or greater than the given point in time.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved