APISonar


org.onosproject.cpman.ControlLoad.time

> org > onosproject > cpman > ControlLoad > time
org APIs onosproject APIs cpman APIs ControlLoad APIs time APIs

Example 1
private ControlLoadSnapshot snapshot(ControlLoad cl, int duration, TimeUnit unit) {
        if (cl != null) {

            return new ControlLoadSnapshot(cl.latest(), cl.average(duration, unit),
                    cl.time(), cl.recent(duration, unit));
        }
        return null;
    }
Example 2
private void print(ControlMetricType type, ControlLoad cl) {
        if (cl != null) {
            print(FMT, type.toString(), cl.latest(), cl.average(), cl.time());
        }
    }