Class ClockSource.MillisecondClockSource
- java.lang.Object
-
- org.xipki.pkcs11.wrapper.concurrent.ClockSource.MillisecondClockSource
-
- All Implemented Interfaces:
ClockSource
- Enclosing interface:
- ClockSource
public static final class ClockSource.MillisecondClockSource extends Object implements ClockSource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.xipki.pkcs11.wrapper.concurrent.ClockSource
ClockSource.Factory, ClockSource.MillisecondClockSource, ClockSource.NanosecondClockSource
-
-
Field Summary
-
Fields inherited from interface org.xipki.pkcs11.wrapper.concurrent.ClockSource
CLOCK, TIMEUNIT_DISPLAY_VALUES, TIMEUNITS_DESCENDING
-
-
Constructor Summary
Constructors Constructor Description MillisecondClockSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcurrentTime0()longelapsedMillis0(long startTime)longelapsedMillis0(long startTime, long endTime)longelapsedNanos0(long startTime)longelapsedNanos0(long startTime, long endTime)TimeUnitgetSourceTimeUnit0()longplusMillis0(long time, long millis)longtoMillis0(long time)longtoNanos0(long time)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.xipki.pkcs11.wrapper.concurrent.ClockSource
elapsedDisplayString0
-
-
-
-
Method Detail
-
currentTime0
public long currentTime0()
- Specified by:
currentTime0in interfaceClockSource
-
elapsedMillis0
public long elapsedMillis0(long startTime)
- Specified by:
elapsedMillis0in interfaceClockSource
-
elapsedMillis0
public long elapsedMillis0(long startTime, long endTime)- Specified by:
elapsedMillis0in interfaceClockSource
-
elapsedNanos0
public long elapsedNanos0(long startTime)
- Specified by:
elapsedNanos0in interfaceClockSource
-
elapsedNanos0
public long elapsedNanos0(long startTime, long endTime)- Specified by:
elapsedNanos0in interfaceClockSource
-
toMillis0
public long toMillis0(long time)
- Specified by:
toMillis0in interfaceClockSource
-
toNanos0
public long toNanos0(long time)
- Specified by:
toNanos0in interfaceClockSource
-
plusMillis0
public long plusMillis0(long time, long millis)- Specified by:
plusMillis0in interfaceClockSource
-
getSourceTimeUnit0
public TimeUnit getSourceTimeUnit0()
- Specified by:
getSourceTimeUnit0in interfaceClockSource
-
-