com.espertech.esper.util
Class MetricUtil

java.lang.Object
  extended by com.espertech.esper.util.MetricUtil

public class MetricUtil
extends java.lang.Object

Utility for CPU and wall time metrics.


Constructor Summary
MetricUtil()
           
 
Method Summary
static long getCPUCurrentThread()
          Returns CPU time for the current thread.
static long getWall()
          Returns wall time using System#nanoTime.
static void initialize()
          Initialize metrics mgmt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetricUtil

public MetricUtil()
Method Detail

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

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com