Class MetricUtil

java.lang.Object
com.espertech.esper.common.internal.util.MetricUtil

public class MetricUtil extends Object
Utility for CPU and wall time metrics.
  • Constructor Details

    • MetricUtil

      public MetricUtil()
  • Method Details

    • initialize

      public static void initialize()
      Initialize metrics mgmt.
    • getCPUCurrentThread

      public static long getCPUCurrentThread()
      Returns CPU time for the current thread.
      Returns:
      cpu current thread
    • getWall

      public static long getWall()
      Returns wall time using System#nanoTime.
      Returns:
      wall time