public class Clock extends Object
The JDK provides two clocks:
At this time, we are using a millis precision (converted to micros) in order to guarantee consistency between the span start times and the durations
| Constructor and Description |
|---|
Clock() |
| Modifier and Type | Method and Description |
|---|---|
static long |
currentMicroTime()
Get the current time in micros.
|
static long |
currentNanoTicks()
Get the current nanos ticks, this method can't be use for date accuracy (only duration
calculations)
|
public static long currentNanoTicks()
public static long currentMicroTime()