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, withZone
public long getTime()
Clock
public void waitUntil(long timestamp)
Clock
Clock.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.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved