public final class NatsSystemClock
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static long |
currentTimeMillis()
Get the current milliseconds from the provider
|
static long |
nanoTime()
Get the current nano time from the provider, suitable for calculating elapsed time
|
static void |
setProvider(NatsSystemClockProvider provider)
Set the provider.
|
public static void setProvider(NatsSystemClockProvider provider)
provider - the providerpublic static long currentTimeMillis()
public static long nanoTime()