Interface TimingSource
-
public interface TimingSource- Since:
- 4.1
- Author:
- Sanne Grinovero (C) 2012 Red Hat Inc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidensureInitialized()Needs to be invoked at least once beforemonotonicTimeEstimate()can be used.longmonotonicTimeEstimate()Returns an approximation ofSystem.nanoTime().voidstop()Invoked on engine integration shutdown.
-
-
-
Method Detail
-
monotonicTimeEstimate
long monotonicTimeEstimate()
Returns an approximation ofSystem.nanoTime(). Performance should be preferred over accuracy by the implementation, but the value is monotonic and expresses time in milliseconds, however, subsequent invocations could return the same value.- Returns:
- an increasing value related to time in milliseconds. Only meaningful to compare time intervals, with no guarantees of high precision.
-
stop
void stop()
Invoked on engine integration shutdown. There is no start method as it's expected to be lazily initialized
-
ensureInitialized
void ensureInitialized()
Needs to be invoked at least once beforemonotonicTimeEstimate()can be used. Safe to be invoked multiple times.
-
-