@FunctionalInterface public interface ClockSource
Modifier and Type | Field and Description |
---|---|
static ClockSource |
SYSTEM |
static TimeUnit |
UNIT |
Modifier and Type | Method and Description |
---|---|
long |
now()
Get the current time in milliseconds.
|
static ClockSource |
system() |
static final TimeUnit UNIT
static final ClockSource SYSTEM
long now()
static ClockSource system()
Copyright © 2017. All rights reserved.