public final class DefaultTimeFunction extends Object implements TimeFunction
It can advance up to 1ms ahead of system time.
TimeFunction| Constructor and Description |
|---|
DefaultTimeFunction()
Default constructor.
|
DefaultTimeFunction(Clock clock)
Default constructor with a
Clock instance. |
| Modifier and Type | Method and Description |
|---|---|
long |
getAsLong() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoExpectedRange, toUnixTimestamppublic long getAsLong()
getAsLong in interface LongSupplierCopyright © 2024. All rights reserved.