Class MetricUtil
java.lang.Object
com.espertech.esper.common.internal.util.MetricUtil
Utility for CPU and wall time metrics.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
Returns CPU time for the current thread.static long
getWall()
Returns wall time using System#nanoTime.static void
Initialize metrics mgmt.
-
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
-