public class MeterAPI extends Object
| Constructor and Description |
|---|
MeterAPI() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int elapsed,
boolean err) |
int |
getAvgTime(int period) |
int |
getCount(int period) |
int |
getErrorCount(int period) |
float |
getErrorRate(int period) |
static MeterAPI |
getInstance() |
long |
getSumTime(int period) |
float |
getTps(int period) |
public static MeterAPI getInstance()
public void add(int elapsed,
boolean err)
public float getTps(int period)
public int getAvgTime(int period)
public long getSumTime(int period)
public int getCount(int period)
public int getErrorCount(int period)
public float getErrorRate(int period)
Copyright © 2021. All rights reserved.