Class HighResolutionTimer

java.lang.Object
org.agrona.concurrent.HighResolutionTimer

public class HighResolutionTimer extends Object
Control the use of high-resolution timers on Windows by a bit of hackery.
  • Field Details

  • Constructor Details

    • HighResolutionTimer

      public 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()