185186187188189190191192193194195
if (sampler == null) { sampler = new EventSampler(rate); componentSamplers.put(stream, sampler); } Pair<Integer, Double> pair = sampler.avgCheck(latency_ms * 1000); if (pair == null) { return; } long avgLatency = (long)((double)pair.getSecond());
242243244245246247248249250251252
} long latency_ms = TimeUtils.time_delta_ms(st); Pair<Integer, Double> pair = sampler.avgCheck(latency_ms * 1000); if (pair == null) { return; } long avgLatency = (long)((double)pair.getSecond());