Package io.pravega.common
Class Timer
- java.lang.Object
-
- io.pravega.common.AbstractTimer
-
- io.pravega.common.Timer
-
public class Timer extends AbstractTimer
Allows easy measurement of elapsed time. All elapsed time reported by this class is by reference to the time of this object's creation.
-
-
Field Summary
-
Fields inherited from class io.pravega.common.AbstractTimer
NANOS_TO_MILLIS
-
-
Constructor Summary
Constructors Constructor Description Timer()Creates a new instance of the Timer class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetElapsedNanos()Gets the elapsed time, in nanoseconds.-
Methods inherited from class io.pravega.common.AbstractTimer
getElapsed, getElapsedMillis, toString
-
-
-
-
Method Detail
-
getElapsedNanos
public long getElapsedNanos()
Description copied from class:AbstractTimerGets the elapsed time, in nanoseconds.- Specified by:
getElapsedNanosin classAbstractTimer- Returns:
- Long indicating elapsed time, in nanoseconds.
-
-