public class Clocks extends Object
static utility methods for operating
on clocks. These utilities include factory methods for different type of clocks.| Modifier and Type | Method and Description |
|---|---|
static SystemNanoClock |
nanoClock()
Returns clock that allow to get current nanos.
|
static Clock |
systemClock()
Returns system clock.
|
public static Clock systemClock()
public static SystemNanoClock nanoClock()
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.