public interface Clock
| Modifier and Type | Method | Description |
|---|---|---|
long |
milliTime() |
A millisecond precision current time, such as provided
by
System.currentTimeMillis(). |
long |
nanoTick() |
A nanosecond precision tick to use for time
measurements.
|
static Clock |
system() |
Create a clock based on system time.
|
static Clock system()
long nanoTick()
long milliTime()
System.currentTimeMillis().Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.