public static class ClockSource.NanosecondClockSource extends Object implements ClockSource
ClockSource.Factory, ClockSource.MillisecondClockSource, ClockSource.NanosecondClockSource
CLOCK, TIMEUNIT_DISPLAY_VALUES, TIMEUNITS_DESCENDING
Constructor and Description |
---|
NanosecondClockSource() |
Modifier and Type | Method and Description |
---|---|
long |
currentTime0() |
long |
elapsedMillis0(long startTime) |
long |
elapsedMillis0(long startTime,
long endTime) |
long |
elapsedNanos0(long startTime) |
long |
elapsedNanos0(long startTime,
long endTime) |
TimeUnit |
getSourceTimeUnit0() |
long |
plusMillis0(long time,
long millis) |
long |
toMillis0(long time) |
long |
toNanos0(long time) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
currentTime, elapsedDisplayString, elapsedDisplayString0, elapsedMillis, elapsedMillis, elapsedNanos, elapsedNanos, getSourceTimeUnit, plusMillis, toMillis, toNanos
public long currentTime0()
currentTime0
in interface ClockSource
public long toMillis0(long time)
toMillis0
in interface ClockSource
public long toNanos0(long time)
toNanos0
in interface ClockSource
public long elapsedMillis0(long startTime)
elapsedMillis0
in interface ClockSource
public long elapsedMillis0(long startTime, long endTime)
elapsedMillis0
in interface ClockSource
public long elapsedNanos0(long startTime)
elapsedNanos0
in interface ClockSource
public long elapsedNanos0(long startTime, long endTime)
elapsedNanos0
in interface ClockSource
public long plusMillis0(long time, long millis)
plusMillis0
in interface ClockSource
public TimeUnit getSourceTimeUnit0()
getSourceTimeUnit0
in interface ClockSource
Copyright © 2017 Zaxxer.com. All rights reserved.