Package org.apache.ignite.internal.util
Class IgniteTicker
- java.lang.Object
-
- org.apache.ignite.internal.util.IgniteTicker
-
public abstract class IgniteTicker extends Object
A time source; returns a time value representing the number of nanoseconds elapsed since some fixed but arbitrary point in time. Note that most users should useIgniteStopwatchinstead of interacting with this class directly.Warning: this interface can only be used to measure elapsed time, not wall time.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedIgniteTicker()Constructor for use by subclasses.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract longread()Returns the number of nanoseconds elapsed since this ticker's fixed point of reference.static IgniteTickersystemTicker()A ticker that reads the current time usingSystem.nanoTime().
-
-
-
Method Detail
-
read
public abstract long read()
Returns the number of nanoseconds elapsed since this ticker's fixed point of reference.
-
systemTicker
public static IgniteTicker systemTicker()
A ticker that reads the current time usingSystem.nanoTime().
-
-