Package org.agrona.concurrent
Class HighResolutionTimer
java.lang.Object
org.agrona.concurrent.HighResolutionTimer
Control the use of high-resolution timers on Windows by a bit of hackery.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
THREAD
-
-
Constructor Details
-
HighResolutionTimer
private HighResolutionTimer()
-
-
Method Details
-
isEnabled
public static boolean isEnabled()Has the high resolution timer been enabled?- Returns:
- true if we believe it is enabled otherwise false.
-
enable
public static void enable()Attempt to enable high resolution timers. -
disable
public static void disable()Attempt to disable the high resolution timers. -
run
private static void run()
-