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 FakeClock |
fakeClock()
Return new fake clock instance.
|
static FakeClock |
fakeClock(long initialTime,
TimeUnit unit)
Return new fake clock instance.
|
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()
public static FakeClock fakeClock()
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.