public class NanosOffsetClock extends Object implements Clock
Clock that uses System.nanoTime() to track the progress of time.| Modifier and Type | Method and Description |
|---|---|
static NanosOffsetClock |
create() |
org.joda.time.Instant |
now()
Returns the current time as an
Instant. |
public static NanosOffsetClock create()
Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.